Documentation ¶
Index ¶
- Variables
- type Akkas
- type GameLength
- type GameSpeed
- type GameType
- type LobbyType
- type NumberType
- type Player
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetAkkas() Akkas
- func (x *Record) GetDuration() *durationpb.Duration
- func (x *Record) GetId() string
- func (x *Record) GetIsChampionLobby() bool
- func (x *Record) GetIsDz() bool
- func (x *Record) GetLength() GameLength
- func (x *Record) GetLobby() LobbyType
- func (x *Record) GetNumber() int64
- func (x *Record) GetNumberType() NumberType
- func (x *Record) GetPlayers() []*Player
- func (x *Record) GetTanyao() Tanyao
- func (x *Record) GetTime() *timestamppb.Timestamp
- func (x *Record) GetType() GameType
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type Tanyao
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LobbyType_name = map[int32]string{ 0: "LOBBY_TYPE_KU", 1: "LOBBY_TYPE_DAN", 2: "LOBBY_TYPE_UPPERDAN", 3: "LOBBY_TYPE_PHOENIX", 4: "LOBBY_TYPE_DZ", 5: "LOBBY_TYPE_X1", 6: "LOBBY_TYPE_X2", 7: "LOBBY_TYPE_X3", 8: "LOBBY_TYPE_EXTERNAL", } LobbyType_value = map[string]int32{ "LOBBY_TYPE_KU": 0, "LOBBY_TYPE_DAN": 1, "LOBBY_TYPE_UPPERDAN": 2, "LOBBY_TYPE_PHOENIX": 3, "LOBBY_TYPE_DZ": 4, "LOBBY_TYPE_X1": 5, "LOBBY_TYPE_X2": 6, "LOBBY_TYPE_X3": 7, "LOBBY_TYPE_EXTERNAL": 8, } )
Enum value maps for LobbyType.
View Source
var ( GameLength_name = map[int32]string{ 0: "GAME_LENGTH_SOUTH", 1: "GAME_LENGTH_EAST", 2: "GAME_LENGTH_ONE", } GameLength_value = map[string]int32{ "GAME_LENGTH_SOUTH": 0, "GAME_LENGTH_EAST": 1, "GAME_LENGTH_ONE": 2, } )
Enum value maps for GameLength.
View Source
var ( GameType_name = map[int32]string{ 0: "GAME_TYPE_4", 1: "GAME_TYPE_3", } GameType_value = map[string]int32{ "GAME_TYPE_4": 0, "GAME_TYPE_3": 1, } )
Enum value maps for GameType.
View Source
var ( GameSpeed_name = map[int32]string{ 0: "GAME_SPEED_NORMAL", 1: "GAME_SPEED_FAST", } GameSpeed_value = map[string]int32{ "GAME_SPEED_NORMAL": 0, "GAME_SPEED_FAST": 1, } )
Enum value maps for GameSpeed.
View Source
var ( Akkas_name = map[int32]string{ 0: "AKKAS_YES", 1: "AKKAS_NO", } Akkas_value = map[string]int32{ "AKKAS_YES": 0, "AKKAS_NO": 1, } )
Enum value maps for Akkas.
View Source
var ( Tanyao_name = map[int32]string{ 0: "TANYAO_YES", 1: "TANYAO_NO", } Tanyao_value = map[string]int32{ "TANYAO_YES": 0, "TANYAO_NO": 1, } )
Enum value maps for Tanyao.
View Source
var ( NumberType_name = map[int32]string{ 0: "NO_NUMBER", 2: "NUMBER_2", 5: "NUMBER_5", 10: "NUMBER_0", } NumberType_value = map[string]int32{ "NO_NUMBER": 0, "NUMBER_2": 2, "NUMBER_5": 5, "NUMBER_0": 10, } )
Enum value maps for NumberType.
View Source
var File_stats_stats_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Akkas ¶
type Akkas int32
func (Akkas) Descriptor ¶
func (Akkas) Descriptor() protoreflect.EnumDescriptor
func (Akkas) EnumDescriptor
deprecated
func (Akkas) Number ¶
func (x Akkas) Number() protoreflect.EnumNumber
func (Akkas) Type ¶
func (Akkas) Type() protoreflect.EnumType
type GameLength ¶
type GameLength int32
const ( GameLength_GAME_LENGTH_SOUTH GameLength = 0 GameLength_GAME_LENGTH_EAST GameLength = 1 GameLength_GAME_LENGTH_ONE GameLength = 2 )
func (GameLength) Descriptor ¶
func (GameLength) Descriptor() protoreflect.EnumDescriptor
func (GameLength) Enum ¶
func (x GameLength) Enum() *GameLength
func (GameLength) EnumDescriptor
deprecated
func (GameLength) EnumDescriptor() ([]byte, []int)
Deprecated: Use GameLength.Descriptor instead.
func (GameLength) Number ¶
func (x GameLength) Number() protoreflect.EnumNumber
func (GameLength) String ¶
func (x GameLength) String() string
func (GameLength) Type ¶
func (GameLength) Type() protoreflect.EnumType
type GameSpeed ¶
type GameSpeed int32
func (GameSpeed) Descriptor ¶
func (GameSpeed) Descriptor() protoreflect.EnumDescriptor
func (GameSpeed) EnumDescriptor
deprecated
func (GameSpeed) Number ¶
func (x GameSpeed) Number() protoreflect.EnumNumber
func (GameSpeed) Type ¶
func (GameSpeed) Type() protoreflect.EnumType
type GameType ¶
type GameType int32
func (GameType) Descriptor ¶
func (GameType) Descriptor() protoreflect.EnumDescriptor
func (GameType) EnumDescriptor
deprecated
func (GameType) Number ¶
func (x GameType) Number() protoreflect.EnumNumber
func (GameType) Type ¶
func (GameType) Type() protoreflect.EnumType
type LobbyType ¶
type LobbyType int32
const ( LobbyType_LOBBY_TYPE_KU LobbyType = 0 // 般 LobbyType_LOBBY_TYPE_DAN LobbyType = 1 // 上 LobbyType_LOBBY_TYPE_UPPERDAN LobbyType = 2 // 特 LobbyType_LOBBY_TYPE_PHOENIX LobbyType = 3 // 鳳 LobbyType_LOBBY_TYPE_DZ LobbyType = 4 // 技 LobbyType_LOBBY_TYPE_X1 LobbyType = 5 // 若 LobbyType_LOBBY_TYPE_X2 LobbyType = 6 // 銀 LobbyType_LOBBY_TYPE_X3 LobbyType = 7 // 琥 LobbyType_LOBBY_TYPE_EXTERNAL LobbyType = 8 // - )
func (LobbyType) Descriptor ¶
func (LobbyType) Descriptor() protoreflect.EnumDescriptor
func (LobbyType) EnumDescriptor
deprecated
func (LobbyType) Number ¶
func (x LobbyType) Number() protoreflect.EnumNumber
func (LobbyType) Type ¶
func (LobbyType) Type() protoreflect.EnumType
type NumberType ¶
type NumberType int32
const ( NumberType_NO_NUMBER NumberType = 0 NumberType_NUMBER_2 NumberType = 2 NumberType_NUMBER_5 NumberType = 5 NumberType_NUMBER_0 NumberType = 10 )
func (NumberType) Descriptor ¶
func (NumberType) Descriptor() protoreflect.EnumDescriptor
func (NumberType) Enum ¶
func (x NumberType) Enum() *NumberType
func (NumberType) EnumDescriptor
deprecated
func (NumberType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NumberType.Descriptor instead.
func (NumberType) Number ¶
func (x NumberType) Number() protoreflect.EnumNumber
func (NumberType) String ¶
func (x NumberType) String() string
func (NumberType) Type ¶
func (NumberType) Type() protoreflect.EnumType
type Player ¶
type Player struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"` Coins int64 `protobuf:"varint,3,opt,name=coins,proto3" json:"coins,omitempty"` // contains filtered or unexported fields }
func (*Player) Descriptor
deprecated
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) ProtoReflect ¶
func (x *Player) ProtoReflect() protoreflect.Message
type Record ¶
type Record struct { Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` Number int64 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` Lobby LobbyType `protobuf:"varint,4,opt,name=lobby,proto3,enum=stats.LobbyType" json:"lobby,omitempty"` Length GameLength `protobuf:"varint,5,opt,name=length,proto3,enum=stats.GameLength" json:"length,omitempty"` Type GameType `protobuf:"varint,6,opt,name=type,proto3,enum=stats.GameType" json:"type,omitempty"` Akkas Akkas `protobuf:"varint,7,opt,name=akkas,proto3,enum=stats.Akkas" json:"akkas,omitempty"` Tanyao Tanyao `protobuf:"varint,8,opt,name=tanyao,proto3,enum=stats.Tanyao" json:"tanyao,omitempty"` // Some strange numbers, that are not ascii numbers like '5' or '2' NumberType NumberType `protobuf:"varint,9,opt,name=number_type,json=numberType,proto3,enum=stats.NumberType" json:"number_type,omitempty"` Players []*Player `protobuf:"bytes,10,rep,name=players,proto3" json:"players,omitempty"` Id string `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"` IsDz bool `protobuf:"varint,12,opt,name=is_dz,json=isDz,proto3" json:"is_dz,omitempty"` IsChampionLobby bool `protobuf:"varint,13,opt,name=is_champion_lobby,json=isChampionLobby,proto3" json:"is_champion_lobby,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetDuration ¶
func (x *Record) GetDuration() *durationpb.Duration
func (*Record) GetIsChampionLobby ¶
func (*Record) GetLength ¶
func (x *Record) GetLength() GameLength
func (*Record) GetNumberType ¶
func (x *Record) GetNumberType() NumberType
func (*Record) GetPlayers ¶
func (*Record) GetTime ¶
func (x *Record) GetTime() *timestamppb.Timestamp
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type Tanyao ¶
type Tanyao int32
func (Tanyao) Descriptor ¶
func (Tanyao) Descriptor() protoreflect.EnumDescriptor
func (Tanyao) EnumDescriptor
deprecated
func (Tanyao) Number ¶
func (x Tanyao) Number() protoreflect.EnumNumber
func (Tanyao) Type ¶
func (Tanyao) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.