51 lines
No EOL
961 B
Protocol Buffer
51 lines
No EOL
961 B
Protocol Buffer
syntax = "proto3";
|
|
option csharp_namespace = "RPG.Network.Proto";
|
|
|
|
enum RPGServiceType
|
|
{
|
|
RPG_SERVICE_TYPE_NONE = 0;
|
|
RPG_SERVICE_TYPE_SDK = 1;
|
|
RPG_SERVICE_TYPE_GATESERVER = 2;
|
|
RPG_SERVICE_TYPE_GAMESERVER = 3;
|
|
}
|
|
|
|
enum ServiceCommandType
|
|
{
|
|
SERVICE_COMMAND_TYPE_NONE = 0;
|
|
SERVICE_COMMAND_TYPE_BIND_CONTAINER = 100;
|
|
SERVICE_COMMAND_TYPE_BIND_CONTAINER_RESULT = 101;
|
|
SERVICE_COMMAND_TYPE_UNBIND_CONTAINER = 102;
|
|
SERVICE_COMMAND_TYPE_FORWARD_GAME_MESSAGE = 103;
|
|
}
|
|
|
|
message CmdBindContainer
|
|
{
|
|
uint64 session_id = 1;
|
|
uint32 player_uid = 2;
|
|
}
|
|
|
|
message CmdBindContainerResult
|
|
{
|
|
uint32 retcode = 1;
|
|
uint64 session_id = 2;
|
|
}
|
|
|
|
message CmdUnbindContainer
|
|
{
|
|
UnbindContainerReason reason = 1;
|
|
uint64 session_id = 2;
|
|
|
|
enum UnbindContainerReason
|
|
{
|
|
UNBIND_CONTAINER_REASON_NONE = 0;
|
|
UNBIND_CONTAINER_REASON_LOGOUT = 1;
|
|
UNBIND_CONTAINER_REASON_KICK = 2;
|
|
}
|
|
}
|
|
|
|
message CmdForwardGameMessage
|
|
{
|
|
uint32 cmd_type = 1;
|
|
bytes payload = 2;
|
|
uint64 session_id = 3;
|
|
} |