|
@@ -276,6 +276,7 @@ const (
|
|
|
PlayerStatus_SZ_ANIMATION PlayerStatus = 1
|
|
|
PlayerStatus_COLOR_FINISH PlayerStatus = 2
|
|
|
PlayerStatus_COLOR_KICK PlayerStatus = 3
|
|
|
+ PlayerStatus_COLOR_TIME_OUT PlayerStatus = 4
|
|
|
)
|
|
|
|
|
|
|
|
@@ -285,12 +286,14 @@ var (
|
|
|
1: "SZ_ANIMATION",
|
|
|
2: "COLOR_FINISH",
|
|
|
3: "COLOR_KICK",
|
|
|
+ 4: "COLOR_TIME_OUT",
|
|
|
}
|
|
|
PlayerStatus_value = map[string]int32{
|
|
|
"PLAYER_STATUS_UNKNOWN": 0,
|
|
|
"SZ_ANIMATION": 1,
|
|
|
"COLOR_FINISH": 2,
|
|
|
"COLOR_KICK": 3,
|
|
|
+ "COLOR_TIME_OUT": 4,
|
|
|
}
|
|
|
)
|
|
|
|
|
@@ -444,14 +447,15 @@ type RoomInfo struct {
|
|
|
Colors []*ColorData `protobuf:"bytes,2,rep,name=colors,proto3" json:"colors,omitempty"`
|
|
|
RoomType RoomType `protobuf:"varint,3,opt,name=room_type,json=roomType,proto3,enum=RoomType" json:"room_type,omitempty"`
|
|
|
RoomMode RoomMode `protobuf:"varint,4,opt,name=room_mode,json=roomMode,proto3,enum=RoomMode" json:"room_mode,omitempty"`
|
|
|
- CurRoundColor RoleType `protobuf:"varint,5,opt,name=cur_round_color,json=curRoundColor,proto3,enum=RoleType" json:"cur_round_color,omitempty"`
|
|
|
+ CurRoundColor RoleType `protobuf:"varint,5,opt,name=cur_round_color,json=curRoundColor,proto3,enum=RoleType" json:"cur_round_color,omitempty"`
|
|
|
Rounds []*Round `protobuf:"bytes,6,rep,name=rounds,proto3" json:"rounds,omitempty"`
|
|
|
FinishColors []*ColorData `protobuf:"bytes,7,rep,name=finish_colors,json=finishColors,proto3" json:"finish_colors,omitempty"`
|
|
|
KictColors []*ColorData `protobuf:"bytes,8,rep,name=kict_colors,json=kictColors,proto3" json:"kict_colors,omitempty"`
|
|
|
Id int32 `protobuf:"varint,9,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
RoomLevel int32 `protobuf:"varint,10,opt,name=room_level,json=roomLevel,proto3" json:"room_level,omitempty"`
|
|
|
RoomStatus RoomStatus `protobuf:"varint,11,opt,name=room_status,json=roomStatus,proto3,enum=RoomStatus" json:"room_status,omitempty"`
|
|
|
- CurColorOptData *NotifyPlayerOpt `protobuf:"bytes,12,opt,name=cur_color_opt_data,json=curColorOptData,proto3" json:"cur_color_opt_data,omitempty"`
|
|
|
+ CurColorOptData *NotifyPlayerOpt `protobuf:"bytes,12,opt,name=cur_color_opt_data,json=curColorOptData,proto3" json:"cur_color_opt_data,omitempty"`
|
|
|
+ OptTime int32 `protobuf:"varint,13,opt,name=opt_time,json=optTime,proto3" json:"opt_time,omitempty"`
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
}
|
|
@@ -570,6 +574,13 @@ func (x *RoomInfo) GetCurColorOptData() *NotifyPlayerOpt {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+func (x *RoomInfo) GetOptTime() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.OptTime
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
type RoleData struct {
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
MColor RoleType `protobuf:"varint,1,opt,name=m_color,json=mColor,proto3,enum=RoleType" json:"m_color,omitempty"`
|
|
@@ -1103,6 +1114,7 @@ type NotifyPlayerStatus struct {
|
|
|
Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"`
|
|
|
Status PlayerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=PlayerStatus" json:"status,omitempty"`
|
|
|
Colors []*ColorData `protobuf:"bytes,3,rep,name=colors,proto3" json:"colors,omitempty"`
|
|
|
+ TimeOutColor *ColorData `protobuf:"bytes,4,opt,name=time_out_color,json=timeOutColor,proto3" json:"time_out_color,omitempty"`
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
}
|
|
@@ -1158,6 +1170,13 @@ func (x *NotifyPlayerStatus) GetColors() []*ColorData {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+func (x *NotifyPlayerStatus) GetTimeOutColor() *ColorData {
|
|
|
+ if x != nil {
|
|
|
+ return x.TimeOutColor
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
type NotifySettlement struct {
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"`
|
|
@@ -1998,7 +2017,7 @@ const file_common_proto_rawDesc = "" +
|
|
|
"\am_color\x18\x01 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x15\n" +
|
|
|
"\x06m_road\x18\x02 \x01(\tR\x05mRoad\x12\x1a\n" +
|
|
|
"\x03opt\x18\x03 \x01(\x0e2\b.OptTypeR\x03opt\x12\x1a\n" +
|
|
|
- "\bszNumber\x18\x04 \x01(\x05R\bszNumber\"\xec\x03\n" +
|
|
|
+ "\bszNumber\x18\x04 \x01(\x05R\bszNumber\"\x87\x04\n" +
|
|
|
"\bRoomInfo\x12\x1f\n" +
|
|
|
"\x05roles\x18\x01 \x03(\v2\t.RoleDataR\x05roles\x12\"\n" +
|
|
|
"\x06colors\x18\x02 \x03(\v2\n" +
|
|
@@ -2018,7 +2037,8 @@ const file_common_proto_rawDesc = "" +
|
|
|
" \x01(\x05R\troomLevel\x12,\n" +
|
|
|
"\vroom_status\x18\v \x01(\x0e2\v.roomStatusR\n" +
|
|
|
"roomStatus\x12=\n" +
|
|
|
- "\x12cur_color_opt_data\x18\f \x01(\v2\x10.NotifyPlayerOptR\x0fcurColorOptData\"\xb0\x01\n" +
|
|
|
+ "\x12cur_color_opt_data\x18\f \x01(\v2\x10.NotifyPlayerOptR\x0fcurColorOptData\x12\x19\n" +
|
|
|
+ "\bopt_time\x18\r \x01(\x05R\aoptTime\"\xb0\x01\n" +
|
|
|
"\bRoleData\x12\"\n" +
|
|
|
"\am_color\x18\x01 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x15\n" +
|
|
|
"\x06m_seat\x18\x02 \x01(\x05R\x05mSeat\x12\x11\n" +
|
|
@@ -2058,12 +2078,14 @@ const file_common_proto_rawDesc = "" +
|
|
|
"\x0fNotifyPlayerOpt\x12\x1f\n" +
|
|
|
"\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12\x1a\n" +
|
|
|
"\x03opt\x18\x02 \x01(\x0e2\b.OptTypeR\x03opt\x12-\n" +
|
|
|
- "\fcanMoveRoles\x18\x03 \x03(\v2\t.RoleDataR\fcanMoveRoles\"\x80\x01\n" +
|
|
|
+ "\fcanMoveRoles\x18\x03 \x03(\v2\t.RoleDataR\fcanMoveRoles\"\xb2\x01\n" +
|
|
|
"\x12NotifyPlayerStatus\x12\x1f\n" +
|
|
|
"\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12%\n" +
|
|
|
"\x06status\x18\x02 \x01(\x0e2\r.playerStatusR\x06status\x12\"\n" +
|
|
|
"\x06colors\x18\x03 \x03(\v2\n" +
|
|
|
- ".ColorDataR\x06colors\"d\n" +
|
|
|
+ ".ColorDataR\x06colors\x120\n" +
|
|
|
+ "\x0etime_out_color\x18\x04 \x01(\v2\n" +
|
|
|
+ ".ColorDataR\ftimeOutColor\"d\n" +
|
|
|
"\x10NotifySettlement\x12\x1f\n" +
|
|
|
"\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12/\n" +
|
|
|
"\rfinish_colors\x18\x02 \x03(\v2\n" +
|
|
@@ -2140,13 +2162,14 @@ const file_common_proto_rawDesc = "" +
|
|
|
"\aWAN_JIA\x10\x02*+\n" +
|
|
|
"\broadType\x12\x15\n" +
|
|
|
"\x11ROAD_TYPE_UNKNOWN\x10\x00\x12\b\n" +
|
|
|
- "\x04HOME\x10\x01*]\n" +
|
|
|
+ "\x04HOME\x10\x01*q\n" +
|
|
|
"\fplayerStatus\x12\x19\n" +
|
|
|
"\x15PLAYER_STATUS_UNKNOWN\x10\x00\x12\x10\n" +
|
|
|
"\fSZ_ANIMATION\x10\x01\x12\x10\n" +
|
|
|
"\fCOLOR_FINISH\x10\x02\x12\x0e\n" +
|
|
|
"\n" +
|
|
|
- "COLOR_KICK\x10\x03*+\n" +
|
|
|
+ "COLOR_KICK\x10\x03\x12\x12\n" +
|
|
|
+ "\x0eCOLOR_TIME_OUT\x10\x04*+\n" +
|
|
|
"\n" +
|
|
|
"roomStatus\x12\t\n" +
|
|
|
"\x05AWAIT\x10\x00\x12\t\n" +
|
|
@@ -2231,23 +2254,24 @@ var file_common_proto_depIdxs = []int32{
|
|
|
0,
|
|
|
5,
|
|
|
10,
|
|
|
- 0,
|
|
|
- 10,
|
|
|
- 8,
|
|
|
- 20,
|
|
|
- 30,
|
|
|
- 30,
|
|
|
- 30,
|
|
|
- 8,
|
|
|
- 2,
|
|
|
- 0,
|
|
|
- 30,
|
|
|
- 8,
|
|
|
- 40,
|
|
|
- 40,
|
|
|
- 40,
|
|
|
- 40,
|
|
|
- 0,
|
|
|
+ 10,
|
|
|
+ 0,
|
|
|
+ 10,
|
|
|
+ 8,
|
|
|
+ 20,
|
|
|
+ 30,
|
|
|
+ 30,
|
|
|
+ 30,
|
|
|
+ 8,
|
|
|
+ 2,
|
|
|
+ 0,
|
|
|
+ 30,
|
|
|
+ 8,
|
|
|
+ 41,
|
|
|
+ 41,
|
|
|
+ 41,
|
|
|
+ 41,
|
|
|
+ 0,
|
|
|
}
|
|
|
|
|
|
func init() { file_common_proto_init() }
|