增加server status和mega type

This commit is contained in:
2025-08-11 11:55:19 +08:00
parent 5ab67999d3
commit ed52397ea9
2 changed files with 65 additions and 10 deletions

View File

@ -13,6 +13,16 @@ enum ServerPacketType {
LEAVE = 6;
LIST = 7;
TOTAL = 8;
STATUS = 9;
}
enum ServerStatus {
FREE = 0;
WAITING = 1;
STARTING = 2;
PLAYING = 3;
ENDING = 4;
FULL = 5;
}
message ServerPacket {
@ -49,4 +59,8 @@ message ServerListPacket {
message ServerTotalPacket {
int32 total = 1;
}
message ServerStatusPacket {
ServerStatus status = 1;
}