修复CPU占用问题,添加servers.JOIN,LEAVE,LIST包

This commit is contained in:
2025-07-11 02:27:16 +08:00
parent e5e02d2430
commit f5290d8585
13 changed files with 303 additions and 113 deletions

View File

@ -7,6 +7,9 @@ enum ServerPacketType {
NEW = 2;
DELETE = 3;
CONNECT = 4;
JOIN = 5;
LEAVE = 6;
LIST = 7;
}
message ServerPacket {
@ -30,4 +33,13 @@ message ServerDeletePacket {
message ServerConnectPacket {
string serverId = 1;
string player = 2;
}
message ServerPlayerPacket {
string player = 1;
}
message ServerListPacket {
string serverId = 1;
repeated string players = 2;
}