Snowflake/RPG.Network.Proto/server_only.proto

61 lines
No EOL
1.1 KiB
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;
RPG_SERVICE_TYPE_MUIPSERVER = 4;
}
enum ServiceCommandType
{
SERVICE_COMMAND_TYPE_NONE = 0;
SERVICE_COMMAND_TYPE_GMTALK_BY_MUIP = 10;
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 CmdGmtalkByMuip
{
uint64 session_id = 1;
string msg = 2;
}
message CmdBindContainer
{
uint64 session_id = 1;
uint32 player_uid = 2;
}
message CmdBindContainerResult
{
uint32 retcode = 1;
uint64 session_id = 2;
RPGServiceType service_type = 3;
}
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;
}