Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullLeaderboard ¶
type FullLeaderboard struct {
// contains filtered or unexported fields
}
func FullLeaderboardFromSpace ¶
func FullLeaderboardFromSpace(space *state.Space, clients []uint32) *FullLeaderboard
func (*FullLeaderboard) BuildLeaderboard ¶
func (fullLeaderboard *FullLeaderboard) BuildLeaderboard(userRank Rank, userPosition uint16) *Leaderboard
func (*FullLeaderboard) BuildLeaderboards ¶
func (fullLeaderboard *FullLeaderboard) BuildLeaderboards() []*Leaderboard
type Leaderboard ¶
type Leaderboard struct { ClientId uint32 // contains filtered or unexported fields }
func (*Leaderboard) ToMessage ¶
func (leaderboard *Leaderboard) ToMessage() *pb.Message
ToMessage returns protobuffer Message object with Leaderboard containing ordered Ranks.
func (*Leaderboard) ToProto ¶
func (leaderboard *Leaderboard) ToProto() *pb.Leaderboard
ToProto returns protobuf representation
type SortableByScore ¶
type SortableByScore []Rank
func (SortableByScore) Len ¶
func (a SortableByScore) Len() int
func (SortableByScore) Less ¶
func (a SortableByScore) Less(i, j int) bool
func (SortableByScore) Swap ¶
func (a SortableByScore) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.