|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.28.1
|
|
|
|
|
// protoc v3.19.0
|
|
|
|
|
// protoc v3.21.12
|
|
|
|
|
// source: poker.proto
|
|
|
|
|
|
|
|
|
|
package api |
|
|
|
|
@ -105,6 +105,8 @@ type Ping struct {
|
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
TimeMs uint64 `protobuf:"varint,1,opt,name=timeMs,proto3" json:"timeMs,omitempty"` // 毫秒时间戳
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Ping) Reset() { |
|
|
|
|
@ -139,10 +141,19 @@ func (*Ping) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{1} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Ping) GetTimeMs() uint64 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.TimeMs |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type Pong struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
TimeMs uint64 `protobuf:"varint,1,opt,name=timeMs,proto3" json:"timeMs,omitempty"` // 毫秒时间戳
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Pong) Reset() { |
|
|
|
|
@ -177,6 +188,13 @@ func (*Pong) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{2} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Pong) GetTimeMs() uint64 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.TimeMs |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 成功消息
|
|
|
|
|
type ResSuccess struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
@ -366,6 +384,7 @@ func (x *ResIdentity) GetMsg() string {
|
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 大厅消息 ============= begin
|
|
|
|
|
type ReqLobbyView struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
@ -408,6 +427,8 @@ type ResLobbyView struct {
|
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
Tables []*LobbyTable `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResLobbyView) Reset() { |
|
|
|
|
@ -442,6 +463,156 @@ func (*ResLobbyView) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{8} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResLobbyView) GetTables() []*LobbyTable { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Tables |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type LobbyTable struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
TableNo int32 `protobuf:"varint,1,opt,name=tableNo,proto3" json:"tableNo,omitempty"` // 游戏编号
|
|
|
|
|
PlayerNum int32 `protobuf:"varint,2,opt,name=playerNum,proto3" json:"playerNum,omitempty"` // 限定玩家数量
|
|
|
|
|
RobotNum int32 `protobuf:"varint,3,opt,name=robotNum,proto3" json:"robotNum,omitempty"` // 限定机器人数量
|
|
|
|
|
Players []*LobbyPlayer `protobuf:"bytes,4,rep,name=players,proto3" json:"players,omitempty"` // 当前玩家机器人列表
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyTable) Reset() { |
|
|
|
|
*x = LobbyTable{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[9] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyTable) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*LobbyTable) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *LobbyTable) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[9] |
|
|
|
|
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 LobbyTable.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*LobbyTable) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{9} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyTable) GetTableNo() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.TableNo |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyTable) GetPlayerNum() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.PlayerNum |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyTable) GetRobotNum() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.RobotNum |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyTable) GetPlayers() []*LobbyPlayer { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Players |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type LobbyPlayer struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
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"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyPlayer) Reset() { |
|
|
|
|
*x = LobbyPlayer{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[10] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyPlayer) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*LobbyPlayer) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *LobbyPlayer) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[10] |
|
|
|
|
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 LobbyPlayer.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*LobbyPlayer) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{10} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyPlayer) GetRobot() bool { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Robot |
|
|
|
|
} |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyPlayer) GetId() int64 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Id |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyPlayer) GetUsername() string { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Username |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *LobbyPlayer) GetAvatar() string { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Avatar |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 创建桌面 ============= begin
|
|
|
|
|
type ReqCreateTable struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
@ -454,7 +625,7 @@ type ReqCreateTable struct {
|
|
|
|
|
func (x *ReqCreateTable) Reset() { |
|
|
|
|
*x = ReqCreateTable{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[9] |
|
|
|
|
mi := &file_poker_proto_msgTypes[11] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
@ -467,7 +638,7 @@ func (x *ReqCreateTable) String() string {
|
|
|
|
|
func (*ReqCreateTable) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ReqCreateTable) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[9] |
|
|
|
|
mi := &file_poker_proto_msgTypes[11] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
@ -480,7 +651,7 @@ func (x *ReqCreateTable) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use ReqCreateTable.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ReqCreateTable) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{9} |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{11} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ReqCreateTable) GetPlayers() int32 { |
|
|
|
|
@ -508,7 +679,7 @@ type ResCreateTable struct {
|
|
|
|
|
func (x *ResCreateTable) Reset() { |
|
|
|
|
*x = ResCreateTable{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[10] |
|
|
|
|
mi := &file_poker_proto_msgTypes[12] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
@ -521,7 +692,7 @@ func (x *ResCreateTable) String() string {
|
|
|
|
|
func (*ResCreateTable) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ResCreateTable) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[10] |
|
|
|
|
mi := &file_poker_proto_msgTypes[12] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
@ -534,7 +705,7 @@ func (x *ResCreateTable) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use ResCreateTable.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ResCreateTable) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{10} |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{12} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *ResCreateTable) GetTableNo() int32 { |
|
|
|
|
@ -544,6 +715,7 @@ func (x *ResCreateTable) GetTableNo() int32 {
|
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 加入游戏 ============= begin
|
|
|
|
|
type ReqJoinTable struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
@ -553,7 +725,7 @@ type ReqJoinTable struct {
|
|
|
|
|
func (x *ReqJoinTable) Reset() { |
|
|
|
|
*x = ReqJoinTable{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[11] |
|
|
|
|
mi := &file_poker_proto_msgTypes[13] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
@ -566,7 +738,7 @@ func (x *ReqJoinTable) String() string {
|
|
|
|
|
func (*ReqJoinTable) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ReqJoinTable) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[11] |
|
|
|
|
mi := &file_poker_proto_msgTypes[13] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
@ -579,7 +751,7 @@ func (x *ReqJoinTable) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use ReqJoinTable.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ReqJoinTable) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{11} |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{13} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type ResJoinTable struct { |
|
|
|
|
@ -591,7 +763,7 @@ type ResJoinTable struct {
|
|
|
|
|
func (x *ResJoinTable) Reset() { |
|
|
|
|
*x = ResJoinTable{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_poker_proto_msgTypes[12] |
|
|
|
|
mi := &file_poker_proto_msgTypes[14] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
@ -604,7 +776,7 @@ func (x *ResJoinTable) String() string {
|
|
|
|
|
func (*ResJoinTable) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *ResJoinTable) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_poker_proto_msgTypes[12] |
|
|
|
|
mi := &file_poker_proto_msgTypes[14] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
@ -617,7 +789,7 @@ func (x *ResJoinTable) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use ResJoinTable.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ResJoinTable) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{12} |
|
|
|
|
return file_poker_proto_rawDescGZIP(), []int{14} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var File_poker_proto protoreflect.FileDescriptor |
|
|
|
|
@ -631,8 +803,11 @@ var file_poker_proto_rawDesc = []byte{
|
|
|
|
|
0x73, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, |
|
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, |
|
|
|
|
0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, |
|
|
|
|
0x79, 0x22, 0x06, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x22, 0x06, 0x0a, 0x04, 0x50, 0x6f, 0x6e, |
|
|
|
|
0x67, 0x22, 0x0c, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, |
|
|
|
|
0x79, 0x22, 0x1e, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x6d, |
|
|
|
|
0x65, 0x4d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x74, 0x69, 0x6d, 0x65, 0x4d, |
|
|
|
|
0x73, 0x22, 0x1e, 0x0a, 0x04, 0x50, 0x6f, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x6d, |
|
|
|
|
0x65, 0x4d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x74, 0x69, 0x6d, 0x65, 0x4d, |
|
|
|
|
0x73, 0x22, 0x0c, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, |
|
|
|
|
0x1b, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, |
|
|
|
|
0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x23, 0x0a, 0x0b, |
|
|
|
|
0x52, 0x65, 0x71, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, |
|
|
|
|
@ -641,18 +816,36 @@ var file_poker_proto_rawDesc = []byte{
|
|
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, |
|
|
|
|
0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, |
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, |
|
|
|
|
0x71, 0x4c, 0x6f, 0x62, 0x62, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, |
|
|
|
|
0x73, 0x4c, 0x6f, 0x62, 0x62, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x42, 0x0a, 0x0e, 0x52, 0x65, |
|
|
|
|
0x71, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, |
|
|
|
|
0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, |
|
|
|
|
0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x73, |
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x73, 0x22, 0x2a, |
|
|
|
|
0x0a, 0x0e, 0x52, 0x65, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, |
|
|
|
|
0x12, 0x18, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, |
|
|
|
|
0x05, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, |
|
|
|
|
0x71, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, |
|
|
|
|
0x73, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, |
|
|
|
|
0x61, 0x70, 0x69, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
0x71, 0x4c, 0x6f, 0x62, 0x62, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x37, 0x0a, 0x0c, 0x52, 0x65, |
|
|
|
|
0x73, 0x4c, 0x6f, 0x62, 0x62, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x27, 0x0a, 0x06, 0x74, 0x61, |
|
|
|
|
0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x70, 0x69, |
|
|
|
|
0x2e, 0x4c, 0x6f, 0x62, 0x62, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, |
|
|
|
|
0x6c, 0x65, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x0a, 0x4c, 0x6f, 0x62, 0x62, 0x79, 0x54, 0x61, 0x62, |
|
|
|
|
0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x18, 0x01, 0x20, |
|
|
|
|
0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x12, 0x1c, 0x0a, 0x09, |
|
|
|
|
0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, |
|
|
|
|
0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x6f, |
|
|
|
|
0x62, 0x6f, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x6f, |
|
|
|
|
0x62, 0x6f, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, |
|
|
|
|
0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x6f, |
|
|
|
|
0x62, 0x62, 0x79, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, |
|
|
|
|
0x72, 0x73, 0x22, 0x67, 0x0a, 0x0b, 0x4c, 0x6f, 0x62, 0x62, 0x79, 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, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, |
|
|
|
|
0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, |
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x22, 0x42, 0x0a, 0x0e, 0x52, |
|
|
|
|
0x65, 0x71, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, |
|
|
|
|
0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, |
|
|
|
|
0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x62, 0x6f, 0x74, |
|
|
|
|
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x73, 0x22, |
|
|
|
|
0x2a, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, |
|
|
|
|
0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x18, 0x01, 0x20, 0x01, |
|
|
|
|
0x28, 0x05, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x52, |
|
|
|
|
0x65, 0x71, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x52, |
|
|
|
|
0x65, 0x73, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0b, 0x5a, 0x09, 0x2e, |
|
|
|
|
0x2f, 0x61, 0x70, 0x69, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
|
@ -667,7 +860,7 @@ func file_poker_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_poker_proto_rawDescData |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var file_poker_proto_msgTypes = make([]protoimpl.MessageInfo, 13) |
|
|
|
|
var file_poker_proto_msgTypes = make([]protoimpl.MessageInfo, 15) |
|
|
|
|
var file_poker_proto_goTypes = []interface{}{ |
|
|
|
|
(*ProtoWrap)(nil), // 0: api.ProtoWrap
|
|
|
|
|
(*Ping)(nil), // 1: api.Ping
|
|
|
|
|
@ -678,17 +871,21 @@ var file_poker_proto_goTypes = []interface{}{
|
|
|
|
|
(*ResIdentity)(nil), // 6: api.ResIdentity
|
|
|
|
|
(*ReqLobbyView)(nil), // 7: api.ReqLobbyView
|
|
|
|
|
(*ResLobbyView)(nil), // 8: api.ResLobbyView
|
|
|
|
|
(*ReqCreateTable)(nil), // 9: api.ReqCreateTable
|
|
|
|
|
(*ResCreateTable)(nil), // 10: api.ResCreateTable
|
|
|
|
|
(*ReqJoinTable)(nil), // 11: api.ReqJoinTable
|
|
|
|
|
(*ResJoinTable)(nil), // 12: api.ResJoinTable
|
|
|
|
|
(*LobbyTable)(nil), // 9: api.LobbyTable
|
|
|
|
|
(*LobbyPlayer)(nil), // 10: api.LobbyPlayer
|
|
|
|
|
(*ReqCreateTable)(nil), // 11: api.ReqCreateTable
|
|
|
|
|
(*ResCreateTable)(nil), // 12: api.ResCreateTable
|
|
|
|
|
(*ReqJoinTable)(nil), // 13: api.ReqJoinTable
|
|
|
|
|
(*ResJoinTable)(nil), // 14: api.ResJoinTable
|
|
|
|
|
} |
|
|
|
|
var file_poker_proto_depIdxs = []int32{ |
|
|
|
|
0, // [0:0] is the sub-list for method output_type
|
|
|
|
|
0, // [0:0] is the sub-list for method input_type
|
|
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
|
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:0] is the sub-list for field type_name
|
|
|
|
|
9, // 0: api.ResLobbyView.tables:type_name -> api.LobbyTable
|
|
|
|
|
10, // 1: api.LobbyTable.players:type_name -> api.LobbyPlayer
|
|
|
|
|
2, // [2:2] is the sub-list for method output_type
|
|
|
|
|
2, // [2:2] is the sub-list for method input_type
|
|
|
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
|
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:2] is the sub-list for field type_name
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { file_poker_proto_init() } |
|
|
|
|
@ -806,7 +1003,7 @@ func file_poker_proto_init() {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ReqCreateTable); i { |
|
|
|
|
switch v := v.(*LobbyTable); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
@ -818,7 +1015,7 @@ func file_poker_proto_init() {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ResCreateTable); i { |
|
|
|
|
switch v := v.(*LobbyPlayer); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
@ -830,7 +1027,7 @@ func file_poker_proto_init() {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ReqJoinTable); i { |
|
|
|
|
switch v := v.(*ReqCreateTable); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
@ -842,6 +1039,30 @@ func file_poker_proto_init() {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ResCreateTable); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ReqJoinTable); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_poker_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*ResJoinTable); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
@ -860,7 +1081,7 @@ func file_poker_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
|
|
|
RawDescriptor: file_poker_proto_rawDesc, |
|
|
|
|
NumEnums: 0, |
|
|
|
|
NumMessages: 13, |
|
|
|
|
NumMessages: 15, |
|
|
|
|
NumExtensions: 0, |
|
|
|
|
NumServices: 0, |
|
|
|
|
}, |
|
|
|
|
|