xy 1 هفته پیش
والد
کامیت
b10aa59310
5فایلهای تغییر یافته به همراه128 افزوده شده و 70 حذف شده
  1. 4 0
      bin/client_msg/common.proto
  2. 1 0
      bin/client_msg/msg.ts
  3. 3 0
      src/server/game/ludo/ludo_room_data.go
  4. 118 70
      src/server/msg/common.pb.go
  5. 2 0
      src/server/msg/msg.go

+ 4 - 0
bin/client_msg/common.proto

@@ -133,6 +133,10 @@ message NotifySettlement {
   repeated ColorData finish_colors = 2;
 }
 
+
+message NotifyUpdateRoomInfo {
+  RoomInfo room_info = 1;  // 
+}
 //----------------------------------
 
 

+ 1 - 0
bin/client_msg/msg.ts

@@ -18,4 +18,5 @@ export enum MsgID {
     NotifySettlement = 15,
     MatchLudo = 16,
     ResMatchLudo = 17,
+    NotifyUpdateRoomInfo = 18,
 }

+ 3 - 0
src/server/game/ludo/ludo_room_data.go

@@ -62,6 +62,9 @@ func (room_info *RoomInfoWrapper) setNextPlayerRound() {
 	if room_info.CurRoundColor == msg.RoleType_ROLE_TYPE_UNKNOWN {
 		log.Error("setNextPlayerRound error")
 	}
+	room_info.NotifyToAllPlayer(&msg.NotifyUpdateRoomInfo{
+		RoomInfo: room_info.RoomInfo,
+	})
 }
 
 // 找到下一个没有完成的玩家

+ 118 - 70
src/server/msg/common.pb.go

@@ -1202,6 +1202,50 @@ func (x *NotifySettlement) GetFinishColors() []*ColorData {
 	return nil
 }
 
+type NotifyUpdateRoomInfo struct {
+	state         protoimpl.MessageState `protogen:"open.v1"`
+	RoomInfo      *RoomInfo              `protobuf:"bytes,1,opt,name=room_info,json=roomInfo,proto3" json:"room_info,omitempty"` //
+	unknownFields protoimpl.UnknownFields
+	sizeCache     protoimpl.SizeCache
+}
+
+func (x *NotifyUpdateRoomInfo) Reset() {
+	*x = NotifyUpdateRoomInfo{}
+	mi := &file_common_proto_msgTypes[12]
+	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+	ms.StoreMessageInfo(mi)
+}
+
+func (x *NotifyUpdateRoomInfo) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*NotifyUpdateRoomInfo) ProtoMessage() {}
+
+func (x *NotifyUpdateRoomInfo) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[12]
+	if x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use NotifyUpdateRoomInfo.ProtoReflect.Descriptor instead.
+func (*NotifyUpdateRoomInfo) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{12}
+}
+
+func (x *NotifyUpdateRoomInfo) GetRoomInfo() *RoomInfo {
+	if x != nil {
+		return x.RoomInfo
+	}
+	return nil
+}
+
 // 用户信息
 type UserInfo struct {
 	state         protoimpl.MessageState `protogen:"open.v1"`
@@ -1216,7 +1260,7 @@ type UserInfo struct {
 
 func (x *UserInfo) Reset() {
 	*x = UserInfo{}
-	mi := &file_common_proto_msgTypes[12]
+	mi := &file_common_proto_msgTypes[13]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1228,7 +1272,7 @@ func (x *UserInfo) String() string {
 func (*UserInfo) ProtoMessage() {}
 
 func (x *UserInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[12]
+	mi := &file_common_proto_msgTypes[13]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1241,7 +1285,7 @@ func (x *UserInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
 func (*UserInfo) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{12}
+	return file_common_proto_rawDescGZIP(), []int{13}
 }
 
 func (x *UserInfo) GetUserId() string {
@@ -1290,7 +1334,7 @@ type ReqLogin struct {
 
 func (x *ReqLogin) Reset() {
 	*x = ReqLogin{}
-	mi := &file_common_proto_msgTypes[13]
+	mi := &file_common_proto_msgTypes[14]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1302,7 +1346,7 @@ func (x *ReqLogin) String() string {
 func (*ReqLogin) ProtoMessage() {}
 
 func (x *ReqLogin) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[13]
+	mi := &file_common_proto_msgTypes[14]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1315,7 +1359,7 @@ func (x *ReqLogin) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ReqLogin.ProtoReflect.Descriptor instead.
 func (*ReqLogin) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{13}
+	return file_common_proto_rawDescGZIP(), []int{14}
 }
 
 func (x *ReqLogin) GetAccount() string {
@@ -1345,7 +1389,7 @@ type ResLogin struct {
 
 func (x *ResLogin) Reset() {
 	*x = ResLogin{}
-	mi := &file_common_proto_msgTypes[14]
+	mi := &file_common_proto_msgTypes[15]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1357,7 +1401,7 @@ func (x *ResLogin) String() string {
 func (*ResLogin) ProtoMessage() {}
 
 func (x *ResLogin) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[14]
+	mi := &file_common_proto_msgTypes[15]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1370,7 +1414,7 @@ func (x *ResLogin) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ResLogin.ProtoReflect.Descriptor instead.
 func (*ResLogin) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{14}
+	return file_common_proto_rawDescGZIP(), []int{15}
 }
 
 func (x *ResLogin) GetUserId() string {
@@ -1414,7 +1458,7 @@ type ReqRegister struct {
 
 func (x *ReqRegister) Reset() {
 	*x = ReqRegister{}
-	mi := &file_common_proto_msgTypes[15]
+	mi := &file_common_proto_msgTypes[16]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1426,7 +1470,7 @@ func (x *ReqRegister) String() string {
 func (*ReqRegister) ProtoMessage() {}
 
 func (x *ReqRegister) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[15]
+	mi := &file_common_proto_msgTypes[16]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1439,7 +1483,7 @@ func (x *ReqRegister) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ReqRegister.ProtoReflect.Descriptor instead.
 func (*ReqRegister) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{15}
+	return file_common_proto_rawDescGZIP(), []int{16}
 }
 
 func (x *ReqRegister) GetNikeName() string {
@@ -1481,7 +1525,7 @@ type ResRegister struct {
 
 func (x *ResRegister) Reset() {
 	*x = ResRegister{}
-	mi := &file_common_proto_msgTypes[16]
+	mi := &file_common_proto_msgTypes[17]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1493,7 +1537,7 @@ func (x *ResRegister) String() string {
 func (*ResRegister) ProtoMessage() {}
 
 func (x *ResRegister) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[16]
+	mi := &file_common_proto_msgTypes[17]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1506,7 +1550,7 @@ func (x *ResRegister) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ResRegister.ProtoReflect.Descriptor instead.
 func (*ResRegister) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{16}
+	return file_common_proto_rawDescGZIP(), []int{17}
 }
 
 func (x *ResRegister) GetSuccess() bool {
@@ -1533,7 +1577,7 @@ type EnterHall struct {
 
 func (x *EnterHall) Reset() {
 	*x = EnterHall{}
-	mi := &file_common_proto_msgTypes[17]
+	mi := &file_common_proto_msgTypes[18]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1545,7 +1589,7 @@ func (x *EnterHall) String() string {
 func (*EnterHall) ProtoMessage() {}
 
 func (x *EnterHall) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[17]
+	mi := &file_common_proto_msgTypes[18]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1558,7 +1602,7 @@ func (x *EnterHall) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use EnterHall.ProtoReflect.Descriptor instead.
 func (*EnterHall) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{17}
+	return file_common_proto_rawDescGZIP(), []int{18}
 }
 
 func (x *EnterHall) GetUserId() string {
@@ -1580,7 +1624,7 @@ type ResEnterHall struct {
 
 func (x *ResEnterHall) Reset() {
 	*x = ResEnterHall{}
-	mi := &file_common_proto_msgTypes[18]
+	mi := &file_common_proto_msgTypes[19]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1592,7 +1636,7 @@ func (x *ResEnterHall) String() string {
 func (*ResEnterHall) ProtoMessage() {}
 
 func (x *ResEnterHall) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[18]
+	mi := &file_common_proto_msgTypes[19]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1605,7 +1649,7 @@ func (x *ResEnterHall) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ResEnterHall.ProtoReflect.Descriptor instead.
 func (*ResEnterHall) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{18}
+	return file_common_proto_rawDescGZIP(), []int{19}
 }
 
 func (x *ResEnterHall) GetSuccess() bool {
@@ -1639,7 +1683,7 @@ type LeaveHall struct {
 
 func (x *LeaveHall) Reset() {
 	*x = LeaveHall{}
-	mi := &file_common_proto_msgTypes[19]
+	mi := &file_common_proto_msgTypes[20]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1651,7 +1695,7 @@ func (x *LeaveHall) String() string {
 func (*LeaveHall) ProtoMessage() {}
 
 func (x *LeaveHall) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[19]
+	mi := &file_common_proto_msgTypes[20]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1664,7 +1708,7 @@ func (x *LeaveHall) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use LeaveHall.ProtoReflect.Descriptor instead.
 func (*LeaveHall) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{19}
+	return file_common_proto_rawDescGZIP(), []int{20}
 }
 
 func (x *LeaveHall) GetUserId() string {
@@ -1686,7 +1730,7 @@ type MatchLudo struct {
 
 func (x *MatchLudo) Reset() {
 	*x = MatchLudo{}
-	mi := &file_common_proto_msgTypes[20]
+	mi := &file_common_proto_msgTypes[21]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1698,7 +1742,7 @@ func (x *MatchLudo) String() string {
 func (*MatchLudo) ProtoMessage() {}
 
 func (x *MatchLudo) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[20]
+	mi := &file_common_proto_msgTypes[21]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1711,7 +1755,7 @@ func (x *MatchLudo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use MatchLudo.ProtoReflect.Descriptor instead.
 func (*MatchLudo) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{20}
+	return file_common_proto_rawDescGZIP(), []int{21}
 }
 
 func (x *MatchLudo) GetSelectRoomType() RoomType {
@@ -1747,7 +1791,7 @@ type ResMatchLudo struct {
 
 func (x *ResMatchLudo) Reset() {
 	*x = ResMatchLudo{}
-	mi := &file_common_proto_msgTypes[21]
+	mi := &file_common_proto_msgTypes[22]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1759,7 +1803,7 @@ func (x *ResMatchLudo) String() string {
 func (*ResMatchLudo) ProtoMessage() {}
 
 func (x *ResMatchLudo) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[21]
+	mi := &file_common_proto_msgTypes[22]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1772,7 +1816,7 @@ func (x *ResMatchLudo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ResMatchLudo.ProtoReflect.Descriptor instead.
 func (*ResMatchLudo) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{21}
+	return file_common_proto_rawDescGZIP(), []int{22}
 }
 
 func (x *ResMatchLudo) GetSuccess() bool {
@@ -1807,7 +1851,7 @@ type MsgError struct {
 
 func (x *MsgError) Reset() {
 	*x = MsgError{}
-	mi := &file_common_proto_msgTypes[22]
+	mi := &file_common_proto_msgTypes[23]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1819,7 +1863,7 @@ func (x *MsgError) String() string {
 func (*MsgError) ProtoMessage() {}
 
 func (x *MsgError) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[22]
+	mi := &file_common_proto_msgTypes[23]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1832,7 +1876,7 @@ func (x *MsgError) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use MsgError.ProtoReflect.Descriptor instead.
 func (*MsgError) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{22}
+	return file_common_proto_rawDescGZIP(), []int{23}
 }
 
 func (x *MsgError) GetErrorCode() int32 {
@@ -1858,7 +1902,7 @@ type ResHeartBeat struct {
 
 func (x *ResHeartBeat) Reset() {
 	*x = ResHeartBeat{}
-	mi := &file_common_proto_msgTypes[23]
+	mi := &file_common_proto_msgTypes[24]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1870,7 +1914,7 @@ func (x *ResHeartBeat) String() string {
 func (*ResHeartBeat) ProtoMessage() {}
 
 func (x *ResHeartBeat) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[23]
+	mi := &file_common_proto_msgTypes[24]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1883,7 +1927,7 @@ func (x *ResHeartBeat) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ResHeartBeat.ProtoReflect.Descriptor instead.
 func (*ResHeartBeat) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{23}
+	return file_common_proto_rawDescGZIP(), []int{24}
 }
 
 func (x *ResHeartBeat) GetMsg() string {
@@ -1902,7 +1946,7 @@ type ReqHeartBeat struct {
 
 func (x *ReqHeartBeat) Reset() {
 	*x = ReqHeartBeat{}
-	mi := &file_common_proto_msgTypes[24]
+	mi := &file_common_proto_msgTypes[25]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1914,7 +1958,7 @@ func (x *ReqHeartBeat) String() string {
 func (*ReqHeartBeat) ProtoMessage() {}
 
 func (x *ReqHeartBeat) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[24]
+	mi := &file_common_proto_msgTypes[25]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1927,7 +1971,7 @@ func (x *ReqHeartBeat) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ReqHeartBeat.ProtoReflect.Descriptor instead.
 func (*ReqHeartBeat) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{24}
+	return file_common_proto_rawDescGZIP(), []int{25}
 }
 
 func (x *ReqHeartBeat) GetMsg() string {
@@ -2014,7 +2058,9 @@ const file_common_proto_rawDesc = "" +
 	"\x10NotifySettlement\x12\x1f\n" +
 	"\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12/\n" +
 	"\rfinish_colors\x18\x02 \x03(\v2\n" +
-	".ColorDataR\ffinishColors\"}\n" +
+	".ColorDataR\ffinishColors\">\n" +
+	"\x14NotifyUpdateRoomInfo\x12&\n" +
+	"\troom_info\x18\x01 \x01(\v2\t.RoomInfoR\broomInfo\"}\n" +
 	"\bUserInfo\x12\x16\n" +
 	"\x06UserId\x18\x01 \x01(\tR\x06UserId\x12\x15\n" +
 	"\x06m_head\x18\x02 \x01(\tR\x05mHead\x12\x15\n" +
@@ -2111,7 +2157,7 @@ func file_common_proto_rawDescGZIP() []byte {
 }
 
 var file_common_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
-var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
+var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
 var file_common_proto_goTypes = []any{
 	(RoleType)(0),                // 0: roleType
 	(OptType)(0),                 // 1: OptType
@@ -2132,19 +2178,20 @@ var file_common_proto_goTypes = []any{
 	(*NotifyPlayerOpt)(nil),      // 16: NotifyPlayerOpt
 	(*NotifyPlayerStatus)(nil),   // 17: NotifyPlayerStatus
 	(*NotifySettlement)(nil),     // 18: NotifySettlement
-	(*UserInfo)(nil),             // 19: UserInfo
-	(*ReqLogin)(nil),             // 20: ReqLogin
-	(*ResLogin)(nil),             // 21: ResLogin
-	(*ReqRegister)(nil),          // 22: ReqRegister
-	(*ResRegister)(nil),          // 23: ResRegister
-	(*EnterHall)(nil),            // 24: EnterHall
-	(*ResEnterHall)(nil),         // 25: ResEnterHall
-	(*LeaveHall)(nil),            // 26: LeaveHall
-	(*MatchLudo)(nil),            // 27: MatchLudo
-	(*ResMatchLudo)(nil),         // 28: ResMatchLudo
-	(*MsgError)(nil),             // 29: MsgError
-	(*ResHeartBeat)(nil),         // 30: ResHeartBeat
-	(*ReqHeartBeat)(nil),         // 31: ReqHeartBeat
+	(*NotifyUpdateRoomInfo)(nil), // 19: NotifyUpdateRoomInfo
+	(*UserInfo)(nil),             // 20: UserInfo
+	(*ReqLogin)(nil),             // 21: ReqLogin
+	(*ResLogin)(nil),             // 22: ResLogin
+	(*ReqRegister)(nil),          // 23: ReqRegister
+	(*ResRegister)(nil),          // 24: ResRegister
+	(*EnterHall)(nil),            // 25: EnterHall
+	(*ResEnterHall)(nil),         // 26: ResEnterHall
+	(*LeaveHall)(nil),            // 27: LeaveHall
+	(*MatchLudo)(nil),            // 28: MatchLudo
+	(*ResMatchLudo)(nil),         // 29: ResMatchLudo
+	(*MsgError)(nil),             // 30: MsgError
+	(*ResHeartBeat)(nil),         // 31: ResHeartBeat
+	(*ReqHeartBeat)(nil),         // 32: ReqHeartBeat
 }
 var file_common_proto_depIdxs = []int32{
 	0,  // 0: round.m_color:type_name -> roleType
@@ -2164,7 +2211,7 @@ var file_common_proto_depIdxs = []int32{
 	0,  // 14: SendColorSz.color:type_name -> roleType
 	0,  // 15: SendRoleMove.color:type_name -> roleType
 	0,  // 16: NotifyPlayerSzNumber.color:type_name -> roleType
-	29, // 17: NotifyPlayerSzNumber.err_msg:type_name -> MsgError
+	30, // 17: NotifyPlayerSzNumber.err_msg:type_name -> MsgError
 	0,  // 18: NotifyPlayerMove.color:type_name -> roleType
 	11, // 19: NotifyPlayerMove.step:type_name -> MoveStepData
 	9,  // 20: NotifyPlayerMove.kick:type_name -> RoleData
@@ -2176,20 +2223,21 @@ var file_common_proto_depIdxs = []int32{
 	10, // 26: NotifyPlayerStatus.colors:type_name -> ColorData
 	0,  // 27: NotifySettlement.color:type_name -> roleType
 	10, // 28: NotifySettlement.finish_colors:type_name -> ColorData
-	19, // 29: ResLogin.userInfo:type_name -> UserInfo
-	29, // 30: ResLogin.err_msg:type_name -> MsgError
-	29, // 31: ResRegister.err_msg:type_name -> MsgError
-	29, // 32: ResEnterHall.err_msg:type_name -> MsgError
-	8,  // 33: ResEnterHall.reconnect_room_info:type_name -> RoomInfo
-	2,  // 34: MatchLudo.select_room_type:type_name -> roomType
-	0,  // 35: MatchLudo.select_color:type_name -> roleType
-	29, // 36: ResMatchLudo.err_msg:type_name -> MsgError
-	8,  // 37: ResMatchLudo.room:type_name -> RoomInfo
-	38, // [38:38] is the sub-list for method output_type
-	38, // [38:38] is the sub-list for method input_type
-	38, // [38:38] is the sub-list for extension type_name
-	38, // [38:38] is the sub-list for extension extendee
-	0,  // [0:38] is the sub-list for field type_name
+	8,  // 29: NotifyUpdateRoomInfo.room_info:type_name -> RoomInfo
+	20, // 30: ResLogin.userInfo:type_name -> UserInfo
+	30, // 31: ResLogin.err_msg:type_name -> MsgError
+	30, // 32: ResRegister.err_msg:type_name -> MsgError
+	30, // 33: ResEnterHall.err_msg:type_name -> MsgError
+	8,  // 34: ResEnterHall.reconnect_room_info:type_name -> RoomInfo
+	2,  // 35: MatchLudo.select_room_type:type_name -> roomType
+	0,  // 36: MatchLudo.select_color:type_name -> roleType
+	30, // 37: ResMatchLudo.err_msg:type_name -> MsgError
+	8,  // 38: ResMatchLudo.room:type_name -> RoomInfo
+	39, // [39:39] is the sub-list for method output_type
+	39, // [39:39] is the sub-list for method input_type
+	39, // [39:39] is the sub-list for extension type_name
+	39, // [39:39] is the sub-list for extension extendee
+	0,  // [0:39] is the sub-list for field type_name
 }
 
 func init() { file_common_proto_init() }
@@ -2203,7 +2251,7 @@ func file_common_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)),
 			NumEnums:      7,
-			NumMessages:   25,
+			NumMessages:   26,
 			NumExtensions: 0,
 			NumServices:   0,
 		},

+ 2 - 0
src/server/msg/msg.go

@@ -39,6 +39,8 @@ func init() {
 	Processor.Register(&NotifySettlement{})
 	Processor.Register(&MatchLudo{})
 	Processor.Register(&ResMatchLudo{})
+	Processor.Register(&NotifyUpdateRoomInfo{})
+
 	Processor.Range(func(id uint16, t reflect.Type) {
 		log.Debug("消息ID: %d, 消息类型: %s\n", id, t.Elem().Name())
 		msgList = append(msgList, MsgInfo{