Documentation ¶
Index ¶
- Variables
- type LeaderboardEntry
- func (*LeaderboardEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LeaderboardEntry) GetData() map[string]*anypb.Any
- func (x *LeaderboardEntry) GetId() string
- func (x *LeaderboardEntry) GetRank() uint32
- func (x *LeaderboardEntry) GetScore() float64
- func (*LeaderboardEntry) ProtoMessage()
- func (x *LeaderboardEntry) ProtoReflect() protoreflect.Message
- func (x *LeaderboardEntry) Reset()
- func (x *LeaderboardEntry) String() string
- type Period
- type SortOrder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Period_name = map[int32]string{ 0: "ALL_TIME", 1: "DAY", 2: "WEEK", 3: "MONTH", } Period_value = map[string]int32{ "ALL_TIME": 0, "DAY": 1, "WEEK": 2, "MONTH": 3, } )
Enum value maps for Period.
View Source
var ( SortOrder_name = map[int32]string{ 0: "ASC", 1: "DESC", } SortOrder_value = map[string]int32{ "ASC": 0, "DESC": 1, } )
Enum value maps for SortOrder.
View Source
var File_leaderboards_models_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type LeaderboardEntry ¶
type LeaderboardEntry struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` Rank uint32 `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"` Data map[string]*anypb.Any `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LeaderboardEntry) Descriptor
deprecated
func (*LeaderboardEntry) Descriptor() ([]byte, []int)
Deprecated: Use LeaderboardEntry.ProtoReflect.Descriptor instead.
func (*LeaderboardEntry) GetId ¶
func (x *LeaderboardEntry) GetId() string
func (*LeaderboardEntry) GetRank ¶
func (x *LeaderboardEntry) GetRank() uint32
func (*LeaderboardEntry) GetScore ¶
func (x *LeaderboardEntry) GetScore() float64
func (*LeaderboardEntry) ProtoMessage ¶
func (*LeaderboardEntry) ProtoMessage()
func (*LeaderboardEntry) ProtoReflect ¶
func (x *LeaderboardEntry) ProtoReflect() protoreflect.Message
func (*LeaderboardEntry) Reset ¶
func (x *LeaderboardEntry) Reset()
func (*LeaderboardEntry) String ¶
func (x *LeaderboardEntry) String() string
type Period ¶
type Period int32
func (Period) Descriptor ¶
func (Period) Descriptor() protoreflect.EnumDescriptor
func (Period) EnumDescriptor
deprecated
func (Period) Number ¶
func (x Period) Number() protoreflect.EnumNumber
func (Period) Type ¶
func (Period) Type() protoreflect.EnumType
type SortOrder ¶
type SortOrder int32
func (SortOrder) Descriptor ¶
func (SortOrder) Descriptor() protoreflect.EnumDescriptor
func (SortOrder) EnumDescriptor
deprecated
func (SortOrder) Number ¶
func (x SortOrder) Number() protoreflect.EnumNumber
func (SortOrder) Type ¶
func (SortOrder) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.