stats

package
v0.0.0-...-bd21981 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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
const (
	Akkas_AKKAS_YES Akkas = 0
	Akkas_AKKAS_NO  Akkas = 1
)

func (Akkas) Descriptor

func (Akkas) Descriptor() protoreflect.EnumDescriptor

func (Akkas) Enum

func (x Akkas) Enum() *Akkas

func (Akkas) EnumDescriptor deprecated

func (Akkas) EnumDescriptor() ([]byte, []int)

Deprecated: Use Akkas.Descriptor instead.

func (Akkas) Number

func (x Akkas) Number() protoreflect.EnumNumber

func (Akkas) String

func (x Akkas) String() string

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

type GameSpeed

type GameSpeed int32
const (
	GameSpeed_GAME_SPEED_NORMAL GameSpeed = 0
	GameSpeed_GAME_SPEED_FAST   GameSpeed = 1
)

func (GameSpeed) Descriptor

func (GameSpeed) Descriptor() protoreflect.EnumDescriptor

func (GameSpeed) Enum

func (x GameSpeed) Enum() *GameSpeed

func (GameSpeed) EnumDescriptor deprecated

func (GameSpeed) EnumDescriptor() ([]byte, []int)

Deprecated: Use GameSpeed.Descriptor instead.

func (GameSpeed) Number

func (x GameSpeed) Number() protoreflect.EnumNumber

func (GameSpeed) String

func (x GameSpeed) String() string

func (GameSpeed) Type

type GameType

type GameType int32
const (
	GameType_GAME_TYPE_4 GameType = 0
	GameType_GAME_TYPE_3 GameType = 1
)

func (GameType) Descriptor

func (GameType) Descriptor() protoreflect.EnumDescriptor

func (GameType) Enum

func (x GameType) Enum() *GameType

func (GameType) EnumDescriptor deprecated

func (GameType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GameType.Descriptor instead.

func (GameType) Number

func (x GameType) Number() protoreflect.EnumNumber

func (GameType) String

func (x GameType) String() string

func (GameType) Type

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) Enum

func (x LobbyType) Enum() *LobbyType

func (LobbyType) EnumDescriptor deprecated

func (LobbyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LobbyType.Descriptor instead.

func (LobbyType) Number

func (x LobbyType) Number() protoreflect.EnumNumber

func (LobbyType) String

func (x LobbyType) String() string

func (LobbyType) Type

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

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

Deprecated: Use Player.ProtoReflect.Descriptor instead.

func (*Player) GetCoins

func (x *Player) GetCoins() int64

func (*Player) GetName

func (x *Player) GetName() string

func (*Player) GetScore

func (x *Player) GetScore() int64

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetAkkas

func (x *Record) GetAkkas() Akkas

func (*Record) GetDuration

func (x *Record) GetDuration() *durationpb.Duration

func (*Record) GetId

func (x *Record) GetId() string

func (*Record) GetIsChampionLobby

func (x *Record) GetIsChampionLobby() bool

func (*Record) GetIsDz

func (x *Record) GetIsDz() bool

func (*Record) GetLength

func (x *Record) GetLength() GameLength

func (*Record) GetLobby

func (x *Record) GetLobby() LobbyType

func (*Record) GetNumber

func (x *Record) GetNumber() int64

func (*Record) GetNumberType

func (x *Record) GetNumberType() NumberType

func (*Record) GetPlayers

func (x *Record) GetPlayers() []*Player

func (*Record) GetTanyao

func (x *Record) GetTanyao() Tanyao

func (*Record) GetTime

func (x *Record) GetTime() *timestamppb.Timestamp

func (*Record) GetType

func (x *Record) GetType() GameType

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type Tanyao

type Tanyao int32
const (
	Tanyao_TANYAO_YES Tanyao = 0
	Tanyao_TANYAO_NO  Tanyao = 1
)

func (Tanyao) Descriptor

func (Tanyao) Descriptor() protoreflect.EnumDescriptor

func (Tanyao) Enum

func (x Tanyao) Enum() *Tanyao

func (Tanyao) EnumDescriptor deprecated

func (Tanyao) EnumDescriptor() ([]byte, []int)

Deprecated: Use Tanyao.Descriptor instead.

func (Tanyao) Number

func (x Tanyao) Number() protoreflect.EnumNumber

func (Tanyao) String

func (x Tanyao) String() string

func (Tanyao) Type

func (Tanyao) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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