Explorar o código

添加是否主机的判断

王虎 %!s(int64=3) %!d(string=hai) anos
pai
achega
98fafaff3e
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      protos/room.proto
  2. 1 0
      protos/user.proto

+ 1 - 0
protos/room.proto

@@ -17,6 +17,7 @@ message RoomJoinRequest {
 message RoomJoinResponse {
     Result Result = 1;
     uint32 RoomID = 2;
+    bool MASTER = 3;
 }
 
 message RoomJoinPush {

+ 1 - 0
protos/user.proto

@@ -34,4 +34,5 @@ message LoginResponse {
     uint32 N=5;
     string Errmsg=6;
     uint64 T = 7;
+    bool Master = 8;
 }