Snowflake/RPG.Network.Proto/server_only.proto

61 lines
1.1 KiB
Protocol Buffer
Raw Normal View History

2024-01-18 16:18:25 +00:00
syntax = "proto3";
option csharp_namespace = "RPG.Network.Proto";
enum RPGServiceType
{
2024-01-18 22:13:40 +00:00
RPG_SERVICE_TYPE_NONE = 0;
RPG_SERVICE_TYPE_SDK = 1;
RPG_SERVICE_TYPE_GATESERVER = 2;
RPG_SERVICE_TYPE_GAMESERVER = 3;
2024-01-21 15:34:19 +00:00
RPG_SERVICE_TYPE_MUIPSERVER = 4;
2024-01-18 16:18:25 +00:00
}
2024-01-18 22:13:40 +00:00
enum ServiceCommandType
2024-01-18 16:18:25 +00:00
{
2024-01-18 22:13:40 +00:00
SERVICE_COMMAND_TYPE_NONE = 0;
2024-01-21 15:34:19 +00:00
SERVICE_COMMAND_TYPE_GMTALK_BY_MUIP = 10;
2024-01-18 22:13:40 +00:00
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;
}
2024-01-21 15:34:19 +00:00
message CmdGmtalkByMuip
{
uint64 session_id = 1;
string msg = 2;
}
2024-01-18 22:13:40 +00:00
message CmdBindContainer
{
uint64 session_id = 1;
uint32 player_uid = 2;
}
message CmdBindContainerResult
{
uint32 retcode = 1;
2024-01-18 16:18:25 +00:00
uint64 session_id = 2;
RPGServiceType service_type = 3;
2024-01-18 16:18:25 +00:00
}
2024-01-18 22:13:40 +00:00
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
2024-01-18 16:18:25 +00:00
{
uint32 cmd_type = 1;
bytes payload = 2;
2024-01-18 22:13:40 +00:00
uint64 session_id = 3;
2024-01-18 16:18:25 +00:00
}