服务器玩家在线信息同步

This commit is contained in:
flswld
2023-03-17 14:30:49 +08:00
parent 658b577c20
commit 7de1d2e765
19 changed files with 286 additions and 77 deletions

View File

@@ -21,6 +21,8 @@ service Discovery {
rpc GetAllGateServerInfoList (NullMsg) returns (GateServerInfoList) {}
// 获取主游戏服务器的appid
rpc GetMainGameServerAppId (NullMsg) returns (GetMainGameServerAppIdRsp) {}
// 获取全服玩家GS在线列表
rpc GetGlobalGsOnlineMap (NullMsg) returns (GetGlobalGsOnlineMapRsp) {}
}
message NullMsg {
@@ -84,3 +86,7 @@ message GateServerInfo {
message GateServerInfoList {
repeated GateServerInfo gate_server_info_list = 1;
}
message GetGlobalGsOnlineMapRsp {
map<uint32, string> GlobalGsOnlineMap = 1;
}

View File

@@ -5,4 +5,5 @@ const (
GS = "GS"
ANTICHEAT = "ANTICHEAT"
PATHFINDING = "PATHFINDING"
NODE = "NODE"
)