Diarkis C++Client Library API Document
protocol.h
[詳解]
1 // © 2019-2024 Diarkis Inc. All rights reserved.
2 
3 #pragma once
4 
5 #include <stdint.h>
6 
7 const char* TranslateCommand(uint8_t version, uint16_t command);
8 
9 namespace CustomCommands
10 {
11  // Get Set
12  constexpr uint16_t Get_ = 200;
13  constexpr uint16_t Set_ = 300;
14 
15  // Field
16  constexpr uint16_t FieldFindUsers = 10003;
17 
18  // File
19  constexpr uint16_t LargeBytes = 500;
20  constexpr uint16_t LargeFile = 501;
21 
22  // TCP
23  constexpr uint16_t TcpHey = 10000;
24 
25  // UDP
26  constexpr uint16_t UdpThrottle = 613;
27  constexpr uint16_t UdpHello = 10000;
28  constexpr uint16_t UdpHello2 = 20000;
29 
30  // MatchMaker
31  constexpr uint16_t TicketMemberLeave = 1011;
32 }
33 
40 enum ConnectState : uint8_t
41 {
112 };
113 
121 {
143 };
144 
151 enum DataType : uint8_t
152 {
160 
168 
176 
191 };
192 
199 enum ProfileType : uint8_t
200 {
207  PT_NONE = 0,
228 };
229 
Diarkis::Commands
Definition: commands.h:9
TranslateCommand
const char * TranslateCommand(uint8_t version, uint16_t command)
Definition: protocol.cpp:11
TCP_JOIN
@ TCP_JOIN
TCPによって接続されています
Definition: protocol.h:90
DT_ACTOR_MANAGEMENT
@ DT_ACTOR_MANAGEMENT
アクターインスタンス管理情報
Definition: protocol.h:175
PT_SENDCREATESERVER
@ PT_SENDCREATESERVER
データの作成開始、送信、およびサーバー処理時間を含む(24バイト)⇒ サポートされていません
Definition: protocol.h:227
TCP_JOINING
@ TCP_JOINING
TCPによる接続
Definition: protocol.h:76
DT_CUSTOM_MESSAGE
@ DT_CUSTOM_MESSAGE
カスタムメッセージ
Definition: protocol.h:183
PT_SEND
@ PT_SEND
プロフィール用のメッセージ
Definition: protocol.h:214
MIGRATE
@ MIGRATE
Room 移動
Definition: protocol.h:111
CustomCommands
Definition: protocol.h:9
MatchMakerSearchStatus
MatchMakerSearchStatus
MatchMakerの検索状況
Definition: protocol.h:120
DT_REPLICATION
@ DT_REPLICATION
複製メッセージ
Definition: protocol.h:167
ROOM_NOT_FIND
@ ROOM_NOT_FIND
FindByTypeによってRoomが見つかりませんでした
Definition: protocol.h:62
CustomCommands::UdpHello2
constexpr uint16_t UdpHello2
Definition: protocol.h:28
UDP_JOIN
@ UDP_JOIN
UDPによって接続されました
Definition: protocol.h:83
FAIL_JOIN
@ FAIL_JOIN
参加に失敗しました
Definition: protocol.h:104
NOT_CONNECTED
@ NOT_CONNECTED
接続前
Definition: protocol.h:48
ROOM_FIND
@ ROOM_FIND
FindByType によって見つかる Room
Definition: protocol.h:55
PT_SENDCREATE
@ PT_SENDCREATE
Definition: protocol.h:220
protocol.h
PT_NONE
@ PT_NONE
プロフィール用メッセージ
Definition: protocol.h:207
CustomCommands::LargeFile
constexpr uint16_t LargeFile
Definition: protocol.h:20
CustomCommands::Set_
constexpr uint16_t Set_
Definition: protocol.h:13
CustomCommands::LargeBytes
constexpr uint16_t LargeBytes
Definition: protocol.h:19
ConnectState
ConnectState
接続状態
Definition: protocol.h:40
CustomCommands::UdpThrottle
constexpr uint16_t UdpThrottle
Definition: protocol.h:26
CustomCommands::UdpHello
constexpr uint16_t UdpHello
Definition: protocol.h:27
Diarkis::Commands::DiarkisTranslateCommand
const DIARKIS_EXPORT char * DiarkisTranslateCommand(uint16_t command)
DataType
DataType
Room::BroadcastTo、MessageTo、Field::SyncInt、Sync、SyncInt P2P::Send、Group::BroadcastTo、MatchMaker::Sync...
Definition: protocol.h:151
CustomCommands::TicketMemberLeave
constexpr uint16_t TicketMemberLeave
Definition: protocol.h:31
MMS_SEARCH_FAIL
@ MMS_SEARCH_FAIL
検索失敗
Definition: protocol.h:142
ProfileType
ProfileType
プロフィールタイプ
Definition: protocol.h:199
DT_POSITION_SYNC
@ DT_POSITION_SYNC
位置同期メッセージ
Definition: protocol.h:159
UDP_JOINING
@ UDP_JOINING
UDPによる接続
Definition: protocol.h:69
commands.h
MMS_SEARCH_SUCCESS
@ MMS_SEARCH_SUCCESS
検索成功
Definition: protocol.h:135
CustomCommands::TcpHey
constexpr uint16_t TcpHey
Definition: protocol.h:23
CustomCommands::Get_
constexpr uint16_t Get_
Definition: protocol.h:12
LEAVE
@ LEAVE
退出
Definition: protocol.h:97
MMS_SEARCH_NOT_RETURN
@ MMS_SEARCH_NOT_RETURN
検索結果が返されません
Definition: protocol.h:128
DT_PROFILE_CHECK
@ DT_PROFILE_CHECK
プロフィール用のメッセージ
Definition: protocol.h:190
TranslateCommand
const char * TranslateCommand(uint8_t version, uint16_t command)
Definition: protocol.cpp:11
CustomCommands::FieldFindUsers
constexpr uint16_t FieldFindUsers
Definition: protocol.h:16