|
|
|
|
@ -1150,7 +1150,6 @@ type ResGameFullStatus struct {
|
|
|
|
|
TableNo int32 `protobuf:"varint,2,opt,name=tableNo,proto3" json:"tableNo,omitempty"` // 所在桌面编号
|
|
|
|
|
GameStage int32 `protobuf:"varint,3,opt,name=gameStage,proto3" json:"gameStage,omitempty"` // 游戏阶段?
|
|
|
|
|
Chip int32 `protobuf:"varint,4,opt,name=chip,proto3" json:"chip,omitempty"` // 牌桌筹码
|
|
|
|
|
RoundTimes int32 `protobuf:"varint,5,opt,name=roundTimes,proto3" json:"roundTimes,omitempty"` // 回合次数
|
|
|
|
|
PlayerId int64 `protobuf:"varint,6,opt,name=playerId,proto3" json:"playerId,omitempty"` // 当前玩家id
|
|
|
|
|
BigBlindPos int32 `protobuf:"varint,7,opt,name=bigBlindPos,proto3" json:"bigBlindPos,omitempty"` // 大盲注位
|
|
|
|
|
SmallBlindPos int32 `protobuf:"varint,8,opt,name=smallBlindPos,proto3" json:"smallBlindPos,omitempty"` // 小盲注位
|
|
|
|
|
@ -1218,13 +1217,6 @@ func (x *ResGameFullStatus) GetChip() int32 {
|
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameFullStatus) GetRoundTimes() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.RoundTimes |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameFullStatus) GetPlayerId() int64 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.PlayerId |
|
|
|
|
@ -1811,7 +1803,7 @@ type ResCalcWinnerChip struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
PlayersWinChip map[int64]int32 `protobuf:"bytes,9,rep,name=playersWinChip,proto3" json:"playersWinChip,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` |
|
|
|
|
WinsChip map[int64]int32 `protobuf:"bytes,9,rep,name=winsChip,proto3" json:"winsChip,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResCalcWinnerChip) Reset() { |
|
|
|
|
@ -1846,13 +1838,61 @@ func (*ResCalcWinnerChip) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{32} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResCalcWinnerChip) GetPlayersWinChip() map[int64]int32 { |
|
|
|
|
func (x *ResCalcWinnerChip) GetWinsChip() map[int64]int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.PlayersWinChip |
|
|
|
|
return x.WinsChip |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 回合数变化时响应消息,前端等发牌动画结束后放开操作
|
|
|
|
|
type ResGameNextRound struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
Round int32 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameNextRound) Reset() { |
|
|
|
|
*x = ResGameNextRound{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[33] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameNextRound) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*ResGameNextRound) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ResGameNextRound) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[33] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
return ms |
|
|
|
|
} |
|
|
|
|
return mi.MessageOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deprecated: Use ResGameNextRound.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ResGameNextRound) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{33} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameNextRound) GetRound() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Round |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var File_poker_proto protoreflect.FileDescriptor |
|
|
|
|
|
|
|
|
|
var file_poker_proto_rawDesc = []byte{ |
|
|
|
|
@ -1927,7 +1967,7 @@ var file_poker_proto_rawDesc = []byte{
|
|
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x63, 0x68, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, |
|
|
|
|
0x63, 0x68, 0x69, 0x70, 0x22, 0x0f, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x47, 0x61, 0x6d, 0x65, 0x41, |
|
|
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x13, 0x0a, 0x11, 0x52, 0x65, 0x71, 0x47, 0x61, 0x6d, 0x65, |
|
|
|
|
0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xd2, 0x02, 0x0a, 0x11, 0x52, |
|
|
|
|
0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xb2, 0x02, 0x0a, 0x11, 0x52, |
|
|
|
|
0x65, 0x73, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, |
|
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, |
|
|
|
|
0x52, 0x06, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, |
|
|
|
|
@ -1935,9 +1975,7 @@ var file_poker_proto_rawDesc = []byte{
|
|
|
|
|
0x4e, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x67, 0x65, 0x18, |
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x67, 0x65, |
|
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x63, 0x68, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, |
|
|
|
|
0x63, 0x68, 0x69, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x69, 0x6d, |
|
|
|
|
0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x54, |
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, |
|
|
|
|
0x63, 0x68, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, |
|
|
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, |
|
|
|
|
0x12, 0x20, 0x0a, 0x0b, 0x62, 0x69, 0x67, 0x42, 0x6c, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x18, |
|
|
|
|
0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x62, 0x69, 0x67, 0x42, 0x6c, 0x69, 0x6e, 0x64, 0x50, |
|
|
|
|
@ -1998,19 +2036,21 @@ var file_poker_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x10, 0x52, 0x65, 0x73, 0x47, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x53, 0x65, 0x74, 0x74, |
|
|
|
|
0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x67, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, |
|
|
|
|
0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x75, |
|
|
|
|
0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x04, 0x67, 0x61, 0x6d, 0x65, 0x22, 0xaa, |
|
|
|
|
0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x04, 0x67, 0x61, 0x6d, 0x65, 0x22, 0x92, |
|
|
|
|
0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x43, 0x61, 0x6c, 0x63, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, |
|
|
|
|
0x43, 0x68, 0x69, 0x70, 0x12, 0x52, 0x0a, 0x0e, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x57, |
|
|
|
|
0x69, 0x6e, 0x43, 0x68, 0x69, 0x70, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x61, |
|
|
|
|
0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x43, 0x61, 0x6c, 0x63, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, |
|
|
|
|
0x43, 0x68, 0x69, 0x70, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x57, 0x69, 0x6e, 0x43, |
|
|
|
|
0x68, 0x69, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, |
|
|
|
|
0x73, 0x57, 0x69, 0x6e, 0x43, 0x68, 0x69, 0x70, 0x1a, 0x41, 0x0a, 0x13, 0x50, 0x6c, 0x61, 0x79, |
|
|
|
|
0x65, 0x72, 0x73, 0x57, 0x69, 0x6e, 0x43, 0x68, 0x69, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
|
|
|
|
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, |
|
|
|
|
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, |
|
|
|
|
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x5a, 0x09, 0x2e, |
|
|
|
|
0x2f, 0x61, 0x70, 0x69, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
0x43, 0x68, 0x69, 0x70, 0x12, 0x40, 0x0a, 0x08, 0x77, 0x69, 0x6e, 0x73, 0x43, 0x68, 0x69, 0x70, |
|
|
|
|
0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, |
|
|
|
|
0x43, 0x61, 0x6c, 0x63, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x43, 0x68, 0x69, 0x70, 0x2e, 0x57, |
|
|
|
|
0x69, 0x6e, 0x73, 0x43, 0x68, 0x69, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x77, 0x69, |
|
|
|
|
0x6e, 0x73, 0x43, 0x68, 0x69, 0x70, 0x1a, 0x3b, 0x0a, 0x0d, 0x57, 0x69, 0x6e, 0x73, 0x43, 0x68, |
|
|
|
|
0x69, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, |
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, |
|
|
|
|
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, |
|
|
|
|
0x02, 0x38, 0x01, 0x22, 0x28, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x47, 0x61, 0x6d, 0x65, 0x4e, 0x65, |
|
|
|
|
0x78, 0x74, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, |
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x42, 0x0b, 0x5a, |
|
|
|
|
0x09, 0x2e, 0x2f, 0x61, 0x70, 0x69, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
|
|
|
|
0x6f, 0x33, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
|
@ -2025,7 +2065,7 @@ func file_poker_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_poker_proto_rawDescData |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var file_poker_proto_msgTypes = make([]protoimpl.MessageInfo, 34) |
|
|
|
|
var file_poker_proto_msgTypes = make([]protoimpl.MessageInfo, 35) |
|
|
|
|
var file_poker_proto_goTypes = []interface{}{ |
|
|
|
|
(*ProtoWrap)(nil), // 0: api.ProtoWrap
|
|
|
|
|
(*Ping)(nil), // 1: api.Ping
|
|
|
|
|
@ -2060,7 +2100,8 @@ var file_poker_proto_goTypes = []interface{}{
|
|
|
|
|
(*ResNoticePlayerLine)(nil), // 30: api.ResNoticePlayerLine
|
|
|
|
|
(*ResGameEndSettle)(nil), // 31: api.ResGameEndSettle
|
|
|
|
|
(*ResCalcWinnerChip)(nil), // 32: api.ResCalcWinnerChip
|
|
|
|
|
nil, // 33: api.ResCalcWinnerChip.PlayersWinChipEntry
|
|
|
|
|
(*ResGameNextRound)(nil), // 33: api.ResGameNextRound
|
|
|
|
|
nil, // 34: api.ResCalcWinnerChip.WinsChipEntry
|
|
|
|
|
} |
|
|
|
|
var file_poker_proto_depIdxs = []int32{ |
|
|
|
|
9, // 0: api.ResLobbyView.tables:type_name -> api.LobbyTable
|
|
|
|
|
@ -2070,7 +2111,7 @@ var file_poker_proto_depIdxs = []int32{
|
|
|
|
|
25, // 4: api.TablePlayer.betRole:type_name -> api.BetRole
|
|
|
|
|
24, // 5: api.TablePlayer.handCard:type_name -> api.Card
|
|
|
|
|
22, // 6: api.ResGameEndSettle.game:type_name -> api.ResGameFullStatus
|
|
|
|
|
33, // 7: api.ResCalcWinnerChip.playersWinChip:type_name -> api.ResCalcWinnerChip.PlayersWinChipEntry
|
|
|
|
|
34, // 7: api.ResCalcWinnerChip.winsChip:type_name -> api.ResCalcWinnerChip.WinsChipEntry
|
|
|
|
|
8, // [8:8] is the sub-list for method output_type
|
|
|
|
|
8, // [8:8] is the sub-list for method input_type
|
|
|
|
|
8, // [8:8] is the sub-list for extension type_name
|
|
|
|
|
@ -2480,6 +2521,18 @@ func file_poker_proto_init() {
|
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ResGameNextRound); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
type x struct{} |
|
|
|
|
out := protoimpl.TypeBuilder{ |
|
|
|
|
@ -2487,7 +2540,7 @@ func file_poker_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
|
|
|
RawDescriptor: file_poker_proto_rawDesc, |
|
|
|
|
NumEnums: 0, |
|
|
|
|
NumMessages: 34, |
|
|
|
|
NumMessages: 35, |
|
|
|
|
NumExtensions: 0, |
|
|
|
|
NumServices: 0, |
|
|
|
|
}, |
|
|
|
|
|