|
|
|
|
@ -1265,16 +1265,18 @@ type TablePlayer struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
Robot bool `protobuf:"varint,1,opt,name=robot,proto3" json:"robot,omitempty"` // 是否机器人
|
|
|
|
|
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` |
|
|
|
|
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` |
|
|
|
|
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` |
|
|
|
|
Chip int32 `protobuf:"varint,5,opt,name=chip,proto3" json:"chip,omitempty"` // 筹码
|
|
|
|
|
Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 玩家状态: 1待准备开始,2已准备开始,已开始(3等待其他玩家动作,4待大盲注,5待小盲注,6待跟注,7已弃)
|
|
|
|
|
LastStatus int32 `protobuf:"varint,7,opt,name=lastStatus,proto3" json:"lastStatus,omitempty"` // TODO 删, 前端通过消息监听获取下注金额信息
|
|
|
|
|
Master bool `protobuf:"varint,8,opt,name=master,proto3" json:"master,omitempty"` // 是否房主`
|
|
|
|
|
BetRole *BetRole `protobuf:"bytes,14,opt,name=betRole,proto3" json:"betRole,omitempty"` // 下注时规则限制
|
|
|
|
|
HandCard []*Card `protobuf:"bytes,15,rep,name=handCard,proto3" json:"handCard,omitempty"` // 手牌
|
|
|
|
|
Robot bool `protobuf:"varint,1,opt,name=robot,proto3" json:"robot,omitempty"` // 是否机器人
|
|
|
|
|
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` |
|
|
|
|
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` |
|
|
|
|
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` |
|
|
|
|
Chip int32 `protobuf:"varint,5,opt,name=chip,proto3" json:"chip,omitempty"` // 筹码
|
|
|
|
|
Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 玩家状态: 1待准备开始,2已准备开始,已开始(3等待其他玩家动作,4待大盲注,5待小盲注,6待跟注,7已弃)
|
|
|
|
|
LastStatus int32 `protobuf:"varint,7,opt,name=lastStatus,proto3" json:"lastStatus,omitempty"` // TODO 删, 前端通过消息监听获取下注金额信息
|
|
|
|
|
Master bool `protobuf:"varint,8,opt,name=master,proto3" json:"master,omitempty"` // 是否房主
|
|
|
|
|
RoundBetTimes int32 `protobuf:"varint,11,opt,name=roundBetTimes,proto3" json:"roundBetTimes,omitempty"` // 该局下注次数
|
|
|
|
|
TotalBetChip int32 `protobuf:"varint,13,opt,name=totalBetChip,proto3" json:"totalBetChip,omitempty"` // 该局牌已下注筹码
|
|
|
|
|
BetRole *BetRole `protobuf:"bytes,14,opt,name=betRole,proto3" json:"betRole,omitempty"` // 下注时规则限制
|
|
|
|
|
HandCard []*Card `protobuf:"bytes,15,rep,name=handCard,proto3" json:"handCard,omitempty"` // 手牌
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *TablePlayer) Reset() { |
|
|
|
|
@ -1365,6 +1367,20 @@ func (x *TablePlayer) GetMaster() bool {
|
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *TablePlayer) GetRoundBetTimes() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.RoundBetTimes |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *TablePlayer) GetTotalBetChip() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.TotalBetChip |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *TablePlayer) GetBetRole() *BetRole { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.BetRole |
|
|
|
|
@ -1440,8 +1456,9 @@ type BetRole struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
MinChip int32 `protobuf:"varint,1,opt,name=minChip,proto3" json:"minChip,omitempty"` // 最低下注额:小盲注加注(按惯例至少2倍与大盲注)
|
|
|
|
|
MaxChip int32 `protobuf:"varint,2,opt,name=maxChip,proto3" json:"maxChip,omitempty"` // 最高下注额:
|
|
|
|
|
BetMin int32 `protobuf:"varint,1,opt,name=betMin,proto3" json:"betMin,omitempty"` // 最低下注额
|
|
|
|
|
BetMax int32 `protobuf:"varint,2,opt,name=betMax,proto3" json:"betMax,omitempty"` // 最高下注额
|
|
|
|
|
BetOpts []int32 `protobuf:"varint,13,rep,packed,name=betOpts,proto3" json:"betOpts,omitempty"` // status=[4,6]时下注可操作按钮: 1跟注,2加注(-[0]+),3All-In,4弃牌,5过牌
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *BetRole) Reset() { |
|
|
|
|
@ -1476,20 +1493,27 @@ func (*BetRole) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{25} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *BetRole) GetMinChip() int32 { |
|
|
|
|
func (x *BetRole) GetBetMin() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.MinChip |
|
|
|
|
return x.BetMin |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *BetRole) GetMaxChip() int32 { |
|
|
|
|
func (x *BetRole) GetBetMax() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.MaxChip |
|
|
|
|
return x.BetMax |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *BetRole) GetBetOpts() []int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.BetOpts |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 开始游戏
|
|
|
|
|
type ReqGameStart struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
@ -1607,17 +1631,17 @@ func (*ResDismissGameTable) Descriptor() ([]byte, []int) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 下注
|
|
|
|
|
type ReqPlaceBet struct { |
|
|
|
|
type ReqBetting struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
BetType int32 `protobuf:"varint,1,opt,name=betType,proto3" json:"betType,omitempty"` // 1跟注,2加注(-[0]+),3All-In,4弃牌,5过牌
|
|
|
|
|
BetType int32 `protobuf:"varint,1,opt,name=betType,proto3" json:"betType,omitempty"` // 1跟注,2加注或跟注(-[0]+),3All-In,4弃牌,5过牌
|
|
|
|
|
BetChip int32 `protobuf:"varint,2,opt,name=betChip,proto3" json:"betChip,omitempty"` // 跟注/加注金额
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ReqPlaceBet) Reset() { |
|
|
|
|
*x = ReqPlaceBet{} |
|
|
|
|
func (x *ReqBetting) Reset() { |
|
|
|
|
*x = ReqBetting{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[29] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
@ -1625,13 +1649,13 @@ func (x *ReqPlaceBet) Reset() {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ReqPlaceBet) String() string { |
|
|
|
|
func (x *ReqBetting) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*ReqPlaceBet) ProtoMessage() {} |
|
|
|
|
func (*ReqBetting) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ReqPlaceBet) ProtoReflect() protoreflect.Message { |
|
|
|
|
func (x *ReqBetting) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[29] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
@ -1643,19 +1667,19 @@ func (x *ReqPlaceBet) ProtoReflect() protoreflect.Message {
|
|
|
|
|
return mi.MessageOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deprecated: Use ReqPlaceBet.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ReqPlaceBet) Descriptor() ([]byte, []int) { |
|
|
|
|
// Deprecated: Use ReqBetting.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ReqBetting) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{29} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ReqPlaceBet) GetBetType() int32 { |
|
|
|
|
func (x *ReqBetting) GetBetType() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.BetType |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ReqPlaceBet) GetBetChip() int32 { |
|
|
|
|
func (x *ReqBetting) GetBetChip() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.BetChip |
|
|
|
|
} |
|
|
|
|
@ -1734,6 +1758,101 @@ func (x *ResNoticePlayerLine) GetLine3() string {
|
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type ResGameEndSettle struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
Game *ResGameFullStatus `protobuf:"bytes,11,opt,name=game,proto3" json:"game,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameEndSettle) Reset() { |
|
|
|
|
*x = ResGameEndSettle{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[31] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameEndSettle) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*ResGameEndSettle) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ResGameEndSettle) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[31] |
|
|
|
|
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 ResGameEndSettle.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ResGameEndSettle) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{31} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResGameEndSettle) GetGame() *ResGameFullStatus { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Game |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 玩家输赢筹码通知
|
|
|
|
|
type ResCalcWinnerChip struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
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"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResCalcWinnerChip) Reset() { |
|
|
|
|
*x = ResCalcWinnerChip{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[32] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResCalcWinnerChip) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*ResCalcWinnerChip) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ResCalcWinnerChip) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[32] |
|
|
|
|
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 ResCalcWinnerChip.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ResCalcWinnerChip) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{32} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResCalcWinnerChip) GetPlayersWinChip() map[int64]int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.PlayersWinChip |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var File_poker_proto protoreflect.FileDescriptor |
|
|
|
|
|
|
|
|
|
var file_poker_proto_rawDesc = []byte{ |
|
|
|
|
@ -1830,7 +1949,7 @@ var file_poker_proto_rawDesc = []byte{
|
|
|
|
|
0x61, 0x72, 0x64, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x0f, |
|
|
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, |
|
|
|
|
0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x22, |
|
|
|
|
0x9a, 0x02, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, |
|
|
|
|
0xe4, 0x02, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, |
|
|
|
|
0x14, 0x0a, 0x05, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, |
|
|
|
|
0x72, 0x6f, 0x62, 0x6f, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, |
|
|
|
|
0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, |
|
|
|
|
@ -1842,36 +1961,56 @@ var file_poker_proto_rawDesc = []byte{
|
|
|
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x74, 0x61, |
|
|
|
|
0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x53, |
|
|
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, |
|
|
|
|
0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x26, 0x0a, |
|
|
|
|
0x07, 0x62, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, |
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x65, |
|
|
|
|
0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x43, 0x61, 0x72, |
|
|
|
|
0x64, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x61, |
|
|
|
|
0x72, 0x64, 0x52, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x43, 0x61, 0x72, 0x64, 0x22, 0x2c, 0x0a, 0x04, |
|
|
|
|
0x43, 0x61, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, |
|
|
|
|
0x05, 0x52, 0x03, 0x64, 0x6f, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x75, 0x69, 0x74, 0x18, 0x02, |
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x75, 0x69, 0x74, 0x22, 0x3d, 0x0a, 0x07, 0x42, 0x65, |
|
|
|
|
0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x43, 0x68, 0x69, 0x70, |
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x43, 0x68, 0x69, 0x70, 0x12, |
|
|
|
|
0x18, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x43, 0x68, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, |
|
|
|
|
0x52, 0x07, 0x6d, 0x61, 0x78, 0x43, 0x68, 0x69, 0x70, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, 0x71, |
|
|
|
|
0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x24, 0x0a, |
|
|
|
|
0x0d, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x42, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x0b, |
|
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x42, 0x65, 0x74, 0x54, 0x69, |
|
|
|
|
0x6d, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x65, 0x74, 0x43, |
|
|
|
|
0x68, 0x69, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, |
|
|
|
|
0x42, 0x65, 0x74, 0x43, 0x68, 0x69, 0x70, 0x12, 0x26, 0x0a, 0x07, 0x62, 0x65, 0x74, 0x52, 0x6f, |
|
|
|
|
0x6c, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, |
|
|
|
|
0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, |
|
|
|
|
0x25, 0x0a, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x43, 0x61, 0x72, 0x64, 0x18, 0x0f, 0x20, 0x03, 0x28, |
|
|
|
|
0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x52, 0x08, 0x68, 0x61, |
|
|
|
|
0x6e, 0x64, 0x43, 0x61, 0x72, 0x64, 0x22, 0x2c, 0x0a, 0x04, 0x43, 0x61, 0x72, 0x64, 0x12, 0x10, |
|
|
|
|
0x0a, 0x03, 0x64, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x6f, 0x74, |
|
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x73, 0x75, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, |
|
|
|
|
0x73, 0x75, 0x69, 0x74, 0x22, 0x53, 0x0a, 0x07, 0x42, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, |
|
|
|
|
0x16, 0x0a, 0x06, 0x62, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, |
|
|
|
|
0x06, 0x62, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x74, 0x4d, 0x61, |
|
|
|
|
0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x12, |
|
|
|
|
0x18, 0x0a, 0x07, 0x62, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x05, |
|
|
|
|
0x52, 0x07, 0x62, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, 0x71, |
|
|
|
|
0x47, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x71, |
|
|
|
|
0x44, 0x69, 0x73, 0x6d, 0x69, 0x73, 0x73, 0x47, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, |
|
|
|
|
0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x44, 0x69, 0x73, 0x6d, 0x69, 0x73, 0x73, 0x47, 0x61, |
|
|
|
|
0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x41, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x50, 0x6c, |
|
|
|
|
0x61, 0x63, 0x65, 0x42, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x65, 0x74, 0x54, 0x79, 0x70, |
|
|
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x62, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, |
|
|
|
|
0x12, 0x18, 0x0a, 0x07, 0x62, 0x65, 0x74, 0x43, 0x68, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, |
|
|
|
|
0x05, 0x52, 0x07, 0x62, 0x65, 0x74, 0x43, 0x68, 0x69, 0x70, 0x22, 0x73, 0x0a, 0x13, 0x52, 0x65, |
|
|
|
|
0x73, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x6e, |
|
|
|
|
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, |
|
|
|
|
0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, |
|
|
|
|
0x05, 0x6c, 0x69, 0x6e, 0x65, 0x31, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, |
|
|
|
|
0x6e, 0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x32, 0x18, 0x0c, 0x20, 0x01, |
|
|
|
|
0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x32, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, |
|
|
|
|
0x65, 0x33, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x33, 0x42, |
|
|
|
|
0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x61, 0x70, 0x69, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, |
|
|
|
|
0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x40, 0x0a, 0x0a, 0x52, 0x65, 0x71, 0x42, 0x65, |
|
|
|
|
0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, |
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x62, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, |
|
|
|
|
0x18, 0x0a, 0x07, 0x62, 0x65, 0x74, 0x43, 0x68, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, |
|
|
|
|
0x52, 0x07, 0x62, 0x65, 0x74, 0x43, 0x68, 0x69, 0x70, 0x22, 0x73, 0x0a, 0x13, 0x52, 0x65, 0x73, |
|
|
|
|
0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x65, |
|
|
|
|
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, |
|
|
|
|
0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, |
|
|
|
|
0x6c, 0x69, 0x6e, 0x65, 0x31, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, |
|
|
|
|
0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x32, 0x18, 0x0c, 0x20, 0x01, 0x28, |
|
|
|
|
0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x32, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, |
|
|
|
|
0x33, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x33, 0x22, 0x3e, |
|
|
|
|
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, |
|
|
|
|
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, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
|
@ -1886,7 +2025,7 @@ func file_poker_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_poker_proto_rawDescData |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var file_poker_proto_msgTypes = make([]protoimpl.MessageInfo, 31) |
|
|
|
|
var file_poker_proto_msgTypes = make([]protoimpl.MessageInfo, 34) |
|
|
|
|
var file_poker_proto_goTypes = []interface{}{ |
|
|
|
|
(*ProtoWrap)(nil), // 0: api.ProtoWrap
|
|
|
|
|
(*Ping)(nil), // 1: api.Ping
|
|
|
|
|
@ -1917,8 +2056,11 @@ var file_poker_proto_goTypes = []interface{}{
|
|
|
|
|
(*ReqGameStart)(nil), // 26: api.ReqGameStart
|
|
|
|
|
(*ReqDismissGameTable)(nil), // 27: api.ReqDismissGameTable
|
|
|
|
|
(*ResDismissGameTable)(nil), // 28: api.ResDismissGameTable
|
|
|
|
|
(*ReqPlaceBet)(nil), // 29: api.ReqPlaceBet
|
|
|
|
|
(*ReqBetting)(nil), // 29: api.ReqBetting
|
|
|
|
|
(*ResNoticePlayerLine)(nil), // 30: api.ResNoticePlayerLine
|
|
|
|
|
(*ResGameEndSettle)(nil), // 31: api.ResGameEndSettle
|
|
|
|
|
(*ResCalcWinnerChip)(nil), // 32: api.ResCalcWinnerChip
|
|
|
|
|
nil, // 33: api.ResCalcWinnerChip.PlayersWinChipEntry
|
|
|
|
|
} |
|
|
|
|
var file_poker_proto_depIdxs = []int32{ |
|
|
|
|
9, // 0: api.ResLobbyView.tables:type_name -> api.LobbyTable
|
|
|
|
|
@ -1927,11 +2069,13 @@ var file_poker_proto_depIdxs = []int32{
|
|
|
|
|
23, // 3: api.ResGameFullStatus.players:type_name -> api.TablePlayer
|
|
|
|
|
25, // 4: api.TablePlayer.betRole:type_name -> api.BetRole
|
|
|
|
|
24, // 5: api.TablePlayer.handCard:type_name -> api.Card
|
|
|
|
|
6, // [6:6] is the sub-list for method output_type
|
|
|
|
|
6, // [6:6] is the sub-list for method input_type
|
|
|
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
|
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:6] is the sub-list for field type_name
|
|
|
|
|
22, // 6: api.ResGameEndSettle.game:type_name -> api.ResGameFullStatus
|
|
|
|
|
33, // 7: api.ResCalcWinnerChip.playersWinChip:type_name -> api.ResCalcWinnerChip.PlayersWinChipEntry
|
|
|
|
|
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
|
|
|
|
|
8, // [8:8] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:8] is the sub-list for field type_name
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { file_poker_proto_init() } |
|
|
|
|
@ -2289,7 +2433,7 @@ func file_poker_proto_init() {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ReqPlaceBet); i { |
|
|
|
|
switch v := v.(*ReqBetting); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
@ -2312,6 +2456,30 @@ func file_poker_proto_init() {
|
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ResGameEndSettle); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ResCalcWinnerChip); 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{ |
|
|
|
|
@ -2319,7 +2487,7 @@ func file_poker_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
|
|
|
RawDescriptor: file_poker_proto_rawDesc, |
|
|
|
|
NumEnums: 0, |
|
|
|
|
NumMessages: 31, |
|
|
|
|
NumMessages: 34, |
|
|
|
|
NumExtensions: 0, |
|
|
|
|
NumServices: 0, |
|
|
|
|
}, |
|
|
|
|
|