Documentation ¶
Index ¶
- Variables
- type Leaderboard
- func (*Leaderboard) Descriptor() ([]byte, []int)deprecated
- func (x *Leaderboard) GetId() string
- func (x *Leaderboard) GetSortOrder() SortOrder
- func (*Leaderboard) ProtoMessage()
- func (x *Leaderboard) ProtoReflect() protoreflect.Message
- func (x *Leaderboard) Reset()
- func (x *Leaderboard) String() string
- 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 SortOrder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortOrder_name = map[int32]string{ 0: "ASCENDING", 1: "DESCENDING", } SortOrder_value = map[string]int32{ "ASCENDING": 0, "DESCENDING": 1, } )
Enum value maps for SortOrder.
View Source
var File_leaderboards_models_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Leaderboard ¶
type Leaderboard struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SortOrder SortOrder `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Leaderboard) Descriptor
deprecated
func (*Leaderboard) Descriptor() ([]byte, []int)
Deprecated: Use Leaderboard.ProtoReflect.Descriptor instead.
func (*Leaderboard) GetId ¶
func (x *Leaderboard) GetId() string
func (*Leaderboard) GetSortOrder ¶
func (x *Leaderboard) GetSortOrder() SortOrder
func (*Leaderboard) ProtoMessage ¶
func (*Leaderboard) ProtoMessage()
func (*Leaderboard) ProtoReflect ¶
func (x *Leaderboard) ProtoReflect() protoreflect.Message
func (*Leaderboard) Reset ¶
func (x *Leaderboard) Reset()
func (*Leaderboard) String ¶
func (x *Leaderboard) String() string
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 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.