Documentation
¶
Index ¶
- Variables
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)deprecated
- func (x *Msg) GetBacks() []Poker
- func (x *Msg) GetConv() uint32
- func (x *Msg) GetInfo() string
- func (x *Msg) GetNick() string
- func (x *Msg) GetTake() Poker
- func (x *Msg) GetType() MsgType
- func (x *Msg) GetUsers() []string
- func (*Msg) ProtoMessage()
- func (x *Msg) ProtoReflect() protoreflect.Message
- func (x *Msg) Reset()
- func (x *Msg) String() string
- type MsgType
- type Poker
- type Scene
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MsgType_name = map[int32]string{ 0: "ping", 1: "run", 2: "reset", 3: "take", } MsgType_value = map[string]int32{ "ping": 0, "run": 1, "reset": 2, "take": 3, } )
Enum value maps for MsgType.
View Source
var ( Poker_name = map[int32]string{ 0: "back", 1: "heartA", 2: "heart2", 3: "heart3", 4: "heart4", 5: "heart5", 6: "heart6", 7: "heart7", 8: "heart8", 9: "heart9", 10: "heart10", 11: "heartJ", 12: "heartQ", 13: "heartK", 14: "clubA", 15: "club2", 16: "club3", 17: "club4", 18: "club5", 19: "club6", 20: "club7", 21: "club8", 22: "club9", 23: "club10", 24: "clubJ", 25: "clubQ", 26: "clubK", 27: "diamondA", 28: "diamond2", 29: "diamond3", 30: "diamond4", 31: "diamond5", 32: "diamond6", 33: "diamond7", 34: "diamond8", 35: "diamond9", 36: "diamond10", 37: "diamondJ", 38: "diamondQ", 39: "diamondK", 40: "spadeA", 41: "spade2", 42: "spade3", 43: "spade4", 44: "spade5", 45: "spade6", 46: "spade7", 47: "spade8", 48: "spade9", 49: "spade10", 50: "spadeJ", 51: "spadeQ", 52: "spadeK", 53: "joker1", 54: "joker2", } Poker_value = map[string]int32{ "back": 0, "heartA": 1, "heart2": 2, "heart3": 3, "heart4": 4, "heart5": 5, "heart6": 6, "heart7": 7, "heart8": 8, "heart9": 9, "heart10": 10, "heartJ": 11, "heartQ": 12, "heartK": 13, "clubA": 14, "club2": 15, "club3": 16, "club4": 17, "club5": 18, "club6": 19, "club7": 20, "club8": 21, "club9": 22, "club10": 23, "clubJ": 24, "clubQ": 25, "clubK": 26, "diamondA": 27, "diamond2": 28, "diamond3": 29, "diamond4": 30, "diamond5": 31, "diamond6": 32, "diamond7": 33, "diamond8": 34, "diamond9": 35, "diamond10": 36, "diamondJ": 37, "diamondQ": 38, "diamondK": 39, "spadeA": 40, "spade2": 41, "spade3": 42, "spade4": 43, "spade5": 44, "spade6": 45, "spade7": 46, "spade8": 47, "spade9": 48, "spade10": 49, "spadeJ": 50, "spadeQ": 51, "spadeK": 52, "joker1": 53, "joker2": 54, } )
Enum value maps for Poker.
View Source
var ( Scene_name = map[int32]string{ 0: "start", 1: "desktop", 2: "help", } Scene_value = map[string]int32{ "start": 0, "desktop": 1, "help": 2, } )
Enum value maps for Scene.
View Source
var File_pb_msg_proto protoreflect.FileDescriptor
View Source
var File_pb_msg_type_proto protoreflect.FileDescriptor
View Source
var File_pb_poker_proto protoreflect.FileDescriptor
View Source
var File_pb_scene_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Msg ¶
type Msg struct { Conv uint32 `protobuf:"varint,1,opt,name=conv,proto3" json:"conv,omitempty"` Nick string `protobuf:"bytes,2,opt,name=nick,proto3" json:"nick,omitempty"` Users []string `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` Type MsgType `protobuf:"varint,4,opt,name=type,proto3,enum=pb.MsgType" json:"type,omitempty"` Backs []Poker `protobuf:"varint,5,rep,packed,name=backs,proto3,enum=pb.Poker" json:"backs,omitempty"` Take Poker `protobuf:"varint,6,opt,name=take,proto3,enum=pb.Poker" json:"take,omitempty"` Info string `protobuf:"bytes,7,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
Msg 消息.
func (*Msg) Descriptor
deprecated
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶
func (x *Msg) ProtoReflect() protoreflect.Message
type MsgType ¶
type MsgType int32
MsgType TODO: MsgType.
func (MsgType) Descriptor ¶
func (MsgType) Descriptor() protoreflect.EnumDescriptor
func (MsgType) EnumDescriptor
deprecated
func (MsgType) Number ¶
func (x MsgType) Number() protoreflect.EnumNumber
func (MsgType) Type ¶
func (MsgType) Type() protoreflect.EnumType
type Poker ¶
type Poker int32
Poker 扑克.
const ( // Back 背面. Poker_back Poker = 0 // HeartA 红桃A. Poker_heartA Poker = 1 Poker_heart2 Poker = 2 Poker_heart3 Poker = 3 Poker_heart4 Poker = 4 Poker_heart5 Poker = 5 Poker_heart6 Poker = 6 Poker_heart7 Poker = 7 Poker_heart8 Poker = 8 Poker_heart9 Poker = 9 Poker_heart10 Poker = 10 Poker_heartJ Poker = 11 Poker_heartQ Poker = 12 Poker_heartK Poker = 13 // ClubA 梅花A. Poker_clubA Poker = 14 Poker_club2 Poker = 15 Poker_club3 Poker = 16 Poker_club4 Poker = 17 Poker_club5 Poker = 18 Poker_club6 Poker = 19 Poker_club7 Poker = 20 Poker_club8 Poker = 21 Poker_club9 Poker = 22 Poker_club10 Poker = 23 Poker_clubJ Poker = 24 Poker_clubQ Poker = 25 Poker_clubK Poker = 26 // DiamondA 方块A. Poker_diamondA Poker = 27 Poker_diamond2 Poker = 28 Poker_diamond3 Poker = 29 Poker_diamond4 Poker = 30 Poker_diamond5 Poker = 31 Poker_diamond6 Poker = 32 Poker_diamond7 Poker = 33 Poker_diamond8 Poker = 34 Poker_diamond9 Poker = 35 Poker_diamond10 Poker = 36 Poker_diamondJ Poker = 37 Poker_diamondQ Poker = 38 Poker_diamondK Poker = 39 // SpadeA 黑桃A. Poker_spadeA Poker = 40 Poker_spade2 Poker = 41 Poker_spade3 Poker = 42 Poker_spade4 Poker = 43 Poker_spade5 Poker = 44 Poker_spade6 Poker = 45 Poker_spade7 Poker = 46 Poker_spade8 Poker = 47 Poker_spade9 Poker = 48 Poker_spade10 Poker = 49 Poker_spadeJ Poker = 50 Poker_spadeQ Poker = 51 Poker_spadeK Poker = 52 // Joker1 大王. Poker_joker1 Poker = 53 // Joker2 小王. Poker_joker2 Poker = 54 )
func (Poker) Descriptor ¶
func (Poker) Descriptor() protoreflect.EnumDescriptor
func (Poker) EnumDescriptor
deprecated
func (Poker) Number ¶
func (x Poker) Number() protoreflect.EnumNumber
func (Poker) Type ¶
func (Poker) Type() protoreflect.EnumType
type Scene ¶
type Scene int32
Scene TODO: Scene.
func (Scene) Descriptor ¶
func (Scene) Descriptor() protoreflect.EnumDescriptor
func (Scene) EnumDescriptor
deprecated
func (Scene) Number ¶
func (x Scene) Number() protoreflect.EnumNumber
func (Scene) Type ¶
func (Scene) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.