gamepb

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) Descriptor() ([]byte, []int)

Deprecated: Use Begin.ProtoReflect.Descriptor instead.

func (*Begin) GetDeskNo added in v0.1.3

func (x *Begin) GetDeskNo() uint32

func (*Begin) GetPeopleNum

func (x *Begin) GetPeopleNum() uint32

func (*Begin) GetPlayers

func (x *Begin) GetPlayers() map[int64]*Player

func (*Begin) GetRoundNum

func (x *Begin) GetRoundNum() uint32

func (*Begin) GetRules

func (x *Begin) GetRules() map[string]uint32

func (*Begin) GetTransactionId added in v0.1.3

func (x *Begin) GetTransactionId() string

func (*Begin) ProtoMessage

func (*Begin) ProtoMessage()

func (*Begin) ProtoReflect

func (x *Begin) ProtoReflect() protoreflect.Message

func (*Begin) Reset

func (x *Begin) Reset()

func (*Begin) String

func (x *Begin) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Dissolve.ProtoReflect.Descriptor instead.

func (*Dissolve) GetDeskNo added in v0.1.3

func (x *Dissolve) GetDeskNo() uint32

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

func (*Dissolve) Reset added in v0.1.3

func (x *Dissolve) Reset()

func (*Dissolve) String added in v0.1.3

func (x *Dissolve) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Pause.ProtoReflect.Descriptor instead.

func (*Pause) GetDeskNo added in v0.1.3

func (x *Pause) GetDeskNo() uint32

func (*Pause) GetUid added in v0.1.3

func (x *Pause) GetUid() uint64

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

func (*Pause) Reset added in v0.1.3

func (x *Pause) Reset()

func (*Pause) String added in v0.1.3

func (x *Pause) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Player.ProtoReflect.Descriptor instead.

func (*Player) GetDeskPos

func (x *Player) GetDeskPos() uint32

func (*Player) GetHeadUrl

func (x *Player) GetHeadUrl() string

func (*Player) GetIsReady

func (x *Player) GetIsReady() bool

func (*Player) GetNickname

func (x *Player) GetNickname() string

func (*Player) GetOffline

func (x *Player) GetOffline() bool

func (*Player) GetScore

func (x *Player) GetScore() float64

func (*Player) GetSex

func (x *Player) GetSex() uint32

func (*Player) GetUid

func (x *Player) GetUid() uint64

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) ProtoReflect

func (x *Player) ProtoReflect() protoreflect.Message

func (*Player) Reset

func (x *Player) Reset()

func (*Player) String

func (x *Player) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ReConnect.ProtoReflect.Descriptor instead.

func (*ReConnect) GetDeskNo added in v0.1.3

func (x *ReConnect) GetDeskNo() uint32

func (*ReConnect) GetUid added in v0.1.3

func (x *ReConnect) GetUid() uint64

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

func (*ReConnect) Reset added in v0.1.3

func (x *ReConnect) Reset()

func (*ReConnect) String added in v0.1.3

func (x *ReConnect) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ReJoin.ProtoReflect.Descriptor instead.

func (*ReJoin) GetDeskNo added in v0.1.3

func (x *ReJoin) GetDeskNo() uint32

func (*ReJoin) GetUId added in v0.1.3

func (x *ReJoin) GetUId() uint64

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

func (*ReJoin) Reset added in v0.1.3

func (x *ReJoin) Reset()

func (*ReJoin) String added in v0.1.3

func (x *ReJoin) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Resume.ProtoReflect.Descriptor instead.

func (*Resume) GetDeskNo added in v0.1.3

func (x *Resume) GetDeskNo() uint32

func (*Resume) GetUid added in v0.1.3

func (x *Resume) GetUid() uint64

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

func (*Resume) Reset added in v0.1.3

func (x *Resume) Reset()

func (*Resume) String added in v0.1.3

func (x *Resume) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RoundOver.ProtoReflect.Descriptor instead.

func (*RoundOver) GetDeskNo added in v0.1.3

func (x *RoundOver) GetDeskNo() uint32

func (*RoundOver) GetIsLastRound added in v0.1.3

func (x *RoundOver) GetIsLastRound() bool

func (*RoundOver) GetRoundNum added in v0.1.3

func (x *RoundOver) GetRoundNum() uint32

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

func (*RoundOver) Reset added in v0.1.3

func (x *RoundOver) Reset()

func (*RoundOver) String added in v0.1.3

func (x *RoundOver) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Settle.ProtoReflect.Descriptor instead.

func (*Settle) GetDeskNo added in v0.1.3

func (x *Settle) GetDeskNo() uint32

func (*Settle) GetIsLastRound added in v0.1.3

func (x *Settle) GetIsLastRound() bool

func (*Settle) GetPlayerSettleInfos added in v0.1.3

func (x *Settle) GetPlayerSettleInfos() []*PlayerSettleInfo

func (*Settle) GetRoundNum added in v0.1.3

func (x *Settle) GetRoundNum() uint32

func (*Settle) GetTransactionId added in v0.1.3

func (x *Settle) GetTransactionId() string

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

func (*Settle) Reset added in v0.1.3

func (x *Settle) Reset()

func (*Settle) String added in v0.1.3

func (x *Settle) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL