Documentation ¶
Index ¶
- Variables
- type Begin
- func (*Begin) Descriptor() ([]byte, []int)deprecated
- func (x *Begin) GetDeskNo() uint32
- func (x *Begin) GetPeopleNum() uint32
- func (x *Begin) GetPlayers() map[int64]*Player
- func (x *Begin) GetRoundNum() uint32
- func (x *Begin) GetRules() map[string]uint32
- func (x *Begin) GetTransactionId() string
- func (*Begin) ProtoMessage()
- func (x *Begin) ProtoReflect() protoreflect.Message
- func (x *Begin) Reset()
- func (x *Begin) String() string
- type Dissolve
- type ForceDissolve
- type Pause
- type Player
- func (*Player) Descriptor() ([]byte, []int)deprecated
- func (x *Player) GetDeskPos() uint32
- func (x *Player) GetHeadUrl() string
- func (x *Player) GetIsReady() bool
- func (x *Player) GetNickname() string
- func (x *Player) GetOffline() bool
- func (x *Player) GetScore() float64
- func (x *Player) GetSex() uint32
- func (x *Player) GetUid() uint64
- func (*Player) ProtoMessage()
- func (x *Player) ProtoReflect() protoreflect.Message
- func (x *Player) Reset()
- func (x *Player) String() string
- type PlayerSettle
- func (*PlayerSettle) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerSettle) GetDeskNo() uint32
- func (x *PlayerSettle) GetIsLastRound() bool
- func (x *PlayerSettle) GetPlayerSettleInfos() *PlayerSettleInfo
- func (x *PlayerSettle) GetRoundNum() uint32
- func (x *PlayerSettle) GetTransactionId() string
- func (*PlayerSettle) ProtoMessage()
- func (x *PlayerSettle) ProtoReflect() protoreflect.Message
- func (x *PlayerSettle) Reset()
- func (x *PlayerSettle) String() string
- type PlayerSettleInfo
- func (*PlayerSettleInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerSettleInfo) GetAction() bool
- func (x *PlayerSettleInfo) GetScore() float64
- func (x *PlayerSettleInfo) GetUid() uint64
- func (*PlayerSettleInfo) ProtoMessage()
- func (x *PlayerSettleInfo) ProtoReflect() protoreflect.Message
- func (x *PlayerSettleInfo) Reset()
- func (x *PlayerSettleInfo) String() string
- type ReConnect
- type ReJoin
- type Resume
- type RoundOver
- func (*RoundOver) Descriptor() ([]byte, []int)deprecated
- func (x *RoundOver) GetDeskNo() uint32
- func (x *RoundOver) GetIsLastRound() bool
- func (x *RoundOver) GetRoundNum() uint32
- func (*RoundOver) ProtoMessage()
- func (x *RoundOver) ProtoReflect() protoreflect.Message
- func (x *RoundOver) Reset()
- func (x *RoundOver) String() string
- type Settle
- func (*Settle) Descriptor() ([]byte, []int)deprecated
- func (x *Settle) GetDeskNo() uint32
- func (x *Settle) GetIsLastRound() bool
- func (x *Settle) GetPlayerSettleInfos() []*PlayerSettleInfo
- func (x *Settle) GetRoundNum() uint32
- func (x *Settle) GetTransactionId() string
- func (*Settle) ProtoMessage()
- func (x *Settle) ProtoReflect() protoreflect.Message
- func (x *Settle) Reset()
- func (x *Settle) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_game_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Begin ¶
type Begin struct { // 牌桌编号 123456 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 交易编号 123456 + 20230122 + 00001 房间号 + 年月日 + 轮数递增 或者 uuid 构成 牌桌编号 TransactionId string `protobuf:"bytes,2,opt,name=transactionId,proto3" json:"transactionId,omitempty"` // map 选择的规则 key 匹配key uint32 具体的值 根据匹配的规则定 当匹配到 需要bool 的时候 则0 为 false 1 为true Rules map[string]uint32 `` /* 152-byte string literal not displayed */ // map 会话编号 玩家列表信息 key 为会话对象唯一标识 Players map[int64]*Player `` /* 156-byte string literal not displayed */ // 总人数 PeopleNum uint32 `protobuf:"varint,5,opt,name=peopleNum,proto3" json:"peopleNum,omitempty"` // 当前轮数 RoundNum uint32 `protobuf:"varint,6,opt,name=roundNum,proto3" json:"roundNum,omitempty"` // contains filtered or unexported fields }
func (*Begin) Descriptor
deprecated
func (*Begin) GetPeopleNum ¶
func (*Begin) GetPlayers ¶
func (*Begin) GetRoundNum ¶
func (*Begin) GetTransactionId ¶ added in v0.1.3
func (*Begin) ProtoMessage ¶
func (*Begin) ProtoMessage()
func (*Begin) ProtoReflect ¶
func (x *Begin) ProtoReflect() protoreflect.Message
type Dissolve ¶ added in v0.1.3
type Dissolve struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,2,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // contains filtered or unexported fields }
正常解散
func (*Dissolve) Descriptor
deprecated
added in
v0.1.3
func (*Dissolve) ProtoMessage ¶ added in v0.1.3
func (*Dissolve) ProtoMessage()
func (*Dissolve) ProtoReflect ¶ added in v0.1.3
func (x *Dissolve) ProtoReflect() protoreflect.Message
type ForceDissolve ¶ added in v0.1.3
type ForceDissolve struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // contains filtered or unexported fields }
强制解散
func (*ForceDissolve) Descriptor
deprecated
added in
v0.1.3
func (*ForceDissolve) Descriptor() ([]byte, []int)
Deprecated: Use ForceDissolve.ProtoReflect.Descriptor instead.
func (*ForceDissolve) GetDeskNo ¶ added in v0.1.3
func (x *ForceDissolve) GetDeskNo() uint32
func (*ForceDissolve) ProtoMessage ¶ added in v0.1.3
func (*ForceDissolve) ProtoMessage()
func (*ForceDissolve) ProtoReflect ¶ added in v0.1.3
func (x *ForceDissolve) ProtoReflect() protoreflect.Message
func (*ForceDissolve) Reset ¶ added in v0.1.3
func (x *ForceDissolve) Reset()
func (*ForceDissolve) String ¶ added in v0.1.3
func (x *ForceDissolve) String() string
type Pause ¶ added in v0.1.3
type Pause struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 玩家编号 Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
玩家挂后台
func (*Pause) Descriptor
deprecated
added in
v0.1.3
func (*Pause) ProtoMessage ¶ added in v0.1.3
func (*Pause) ProtoMessage()
func (*Pause) ProtoReflect ¶ added in v0.1.3
func (x *Pause) ProtoReflect() protoreflect.Message
type Player ¶
type Player struct { // 玩家座位位置 DeskPos uint32 `protobuf:"varint,1,opt,name=deskPos,proto3" json:"deskPos,omitempty"` // 玩家编号 Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // 玩家昵称 Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` // 玩家性别 Sex uint32 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex,omitempty"` // 头像 HeadUrl string `protobuf:"bytes,5,opt,name=headUrl,proto3" json:"headUrl,omitempty"` // 玩家余额 Score float64 `protobuf:"fixed64,6,opt,name=score,proto3" json:"score,omitempty"` // 玩家是否准备 IsReady bool `protobuf:"varint,7,opt,name=isReady,proto3" json:"isReady,omitempty"` // 玩家是否离线 Offline bool `protobuf:"varint,20,opt,name=offline,proto3" json:"offline,omitempty"` // contains filtered or unexported fields }
func (*Player) Descriptor
deprecated
func (*Player) GetDeskPos ¶
func (*Player) GetHeadUrl ¶
func (*Player) GetIsReady ¶
func (*Player) GetNickname ¶
func (*Player) GetOffline ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) ProtoReflect ¶
func (x *Player) ProtoReflect() protoreflect.Message
type PlayerSettle ¶ added in v0.1.3
type PlayerSettle struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 交易编号 123456 + 20230122 + 00001 房间号 + 年月日 + 轮数递增 或者 uuid 构成 牌桌编号 TransactionId string `protobuf:"bytes,2,opt,name=transactionId,proto3" json:"transactionId,omitempty"` // 当前轮数 RoundNum uint32 `protobuf:"varint,3,opt,name=roundNum,proto3" json:"roundNum,omitempty"` // 玩家结算信息 PlayerSettleInfos *PlayerSettleInfo `protobuf:"bytes,4,opt,name=playerSettleInfos,proto3" json:"playerSettleInfos,omitempty"` // 是否为最后一轮 为大结算 需要对大赢家进行抽水 IsLastRound bool `protobuf:"varint,7,opt,name=isLastRound,proto3" json:"isLastRound,omitempty"` // contains filtered or unexported fields }
下注 每一轮结算 总结算
func (*PlayerSettle) Descriptor
deprecated
added in
v0.1.3
func (*PlayerSettle) Descriptor() ([]byte, []int)
Deprecated: Use PlayerSettle.ProtoReflect.Descriptor instead.
func (*PlayerSettle) GetDeskNo ¶ added in v0.1.3
func (x *PlayerSettle) GetDeskNo() uint32
func (*PlayerSettle) GetIsLastRound ¶ added in v0.1.3
func (x *PlayerSettle) GetIsLastRound() bool
func (*PlayerSettle) GetPlayerSettleInfos ¶ added in v0.1.3
func (x *PlayerSettle) GetPlayerSettleInfos() *PlayerSettleInfo
func (*PlayerSettle) GetRoundNum ¶ added in v0.1.3
func (x *PlayerSettle) GetRoundNum() uint32
func (*PlayerSettle) GetTransactionId ¶ added in v0.1.3
func (x *PlayerSettle) GetTransactionId() string
func (*PlayerSettle) ProtoMessage ¶ added in v0.1.3
func (*PlayerSettle) ProtoMessage()
func (*PlayerSettle) ProtoReflect ¶ added in v0.1.3
func (x *PlayerSettle) ProtoReflect() protoreflect.Message
func (*PlayerSettle) Reset ¶ added in v0.1.3
func (x *PlayerSettle) Reset()
func (*PlayerSettle) String ¶ added in v0.1.3
func (x *PlayerSettle) String() string
type PlayerSettleInfo ¶ added in v0.1.3
type PlayerSettleInfo struct { // 玩家编号 Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // false 减 true 加操作 Action bool `protobuf:"varint,2,opt,name=action,proto3" json:"action,omitempty"` // 玩家输赢分数 正整数 根据 action 进行加减操作 Score float64 `protobuf:"fixed64,3,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
单个玩家结算信息
func (*PlayerSettleInfo) Descriptor
deprecated
added in
v0.1.3
func (*PlayerSettleInfo) Descriptor() ([]byte, []int)
Deprecated: Use PlayerSettleInfo.ProtoReflect.Descriptor instead.
func (*PlayerSettleInfo) GetAction ¶ added in v0.1.3
func (x *PlayerSettleInfo) GetAction() bool
func (*PlayerSettleInfo) GetScore ¶ added in v0.1.3
func (x *PlayerSettleInfo) GetScore() float64
func (*PlayerSettleInfo) GetUid ¶ added in v0.1.3
func (x *PlayerSettleInfo) GetUid() uint64
func (*PlayerSettleInfo) ProtoMessage ¶ added in v0.1.3
func (*PlayerSettleInfo) ProtoMessage()
func (*PlayerSettleInfo) ProtoReflect ¶ added in v0.1.3
func (x *PlayerSettleInfo) ProtoReflect() protoreflect.Message
func (*PlayerSettleInfo) Reset ¶ added in v0.1.3
func (x *PlayerSettleInfo) Reset()
func (*PlayerSettleInfo) String ¶ added in v0.1.3
func (x *PlayerSettleInfo) String() string
type ReConnect ¶ added in v0.1.3
type ReConnect struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 玩家编号 Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
游戏场景内重新连接
func (*ReConnect) Descriptor
deprecated
added in
v0.1.3
func (*ReConnect) ProtoMessage ¶ added in v0.1.3
func (*ReConnect) ProtoMessage()
func (*ReConnect) ProtoReflect ¶ added in v0.1.3
func (x *ReConnect) ProtoReflect() protoreflect.Message
type ReJoin ¶ added in v0.1.3
type ReJoin struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 玩家编号 UId uint64 `protobuf:"varint,2,opt,name=uId,proto3" json:"uId,omitempty"` // contains filtered or unexported fields }
重新登陆断线重连
func (*ReJoin) Descriptor
deprecated
added in
v0.1.3
func (*ReJoin) ProtoMessage ¶ added in v0.1.3
func (*ReJoin) ProtoMessage()
func (*ReJoin) ProtoReflect ¶ added in v0.1.3
func (x *ReJoin) ProtoReflect() protoreflect.Message
type Resume ¶ added in v0.1.3
type Resume struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 玩家编号 Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
玩家切后台回来
func (*Resume) Descriptor
deprecated
added in
v0.1.3
func (*Resume) ProtoMessage ¶ added in v0.1.3
func (*Resume) ProtoMessage()
func (*Resume) ProtoReflect ¶ added in v0.1.3
func (x *Resume) ProtoReflect() protoreflect.Message
type RoundOver ¶ added in v0.1.3
type RoundOver struct { // 牌桌编号 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 是否为最后一轮 IsLastRound bool `protobuf:"varint,3,opt,name=isLastRound,proto3" json:"isLastRound,omitempty"` // 当前轮数 RoundNum uint32 `protobuf:"varint,4,opt,name=roundNum,proto3" json:"roundNum,omitempty"` // contains filtered or unexported fields }
轮结束
func (*RoundOver) Descriptor
deprecated
added in
v0.1.3
func (*RoundOver) GetIsLastRound ¶ added in v0.1.3
func (*RoundOver) GetRoundNum ¶ added in v0.1.3
func (*RoundOver) ProtoMessage ¶ added in v0.1.3
func (*RoundOver) ProtoMessage()
func (*RoundOver) ProtoReflect ¶ added in v0.1.3
func (x *RoundOver) ProtoReflect() protoreflect.Message
type Settle ¶ added in v0.1.3
type Settle struct { // 牌桌编号 123456 DeskNo uint32 `protobuf:"varint,1,opt,name=deskNo,proto3" json:"deskNo,omitempty"` // 交易编号 123456 + 20230122 + 00001 房间号 + 年月日 + 轮数递增 或者 uuid 构成 牌桌编号 TransactionId string `protobuf:"bytes,2,opt,name=transactionId,proto3" json:"transactionId,omitempty"` // 当前轮数 RoundNum uint32 `protobuf:"varint,3,opt,name=roundNum,proto3" json:"roundNum,omitempty"` // 玩家结算信息 PlayerSettleInfos []*PlayerSettleInfo `protobuf:"bytes,4,rep,name=playerSettleInfos,proto3" json:"playerSettleInfos,omitempty"` // 是否为最后一轮 为大结算 需要对大赢家进行抽水 IsLastRound bool `protobuf:"varint,7,opt,name=isLastRound,proto3" json:"isLastRound,omitempty"` // contains filtered or unexported fields }
每一轮的结算信息
func (*Settle) Descriptor
deprecated
added in
v0.1.3
func (*Settle) GetIsLastRound ¶ added in v0.1.3
func (*Settle) GetPlayerSettleInfos ¶ added in v0.1.3
func (x *Settle) GetPlayerSettleInfos() []*PlayerSettleInfo
func (*Settle) GetRoundNum ¶ added in v0.1.3
func (*Settle) GetTransactionId ¶ added in v0.1.3
func (*Settle) ProtoMessage ¶ added in v0.1.3
func (*Settle) ProtoMessage()
func (*Settle) ProtoReflect ¶ added in v0.1.3
func (x *Settle) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.