scores

package
v0.1.117 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Window_name = map[int32]string{
		0: "WINDOW_UNKNOWN",
		1: "WINDOW_ALL_TIME",
		2: "WINDOW_DAY",
		3: "WINDOW_WEEK",
	}
	Window_value = map[string]int32{
		"WINDOW_UNKNOWN":  0,
		"WINDOW_ALL_TIME": 1,
		"WINDOW_DAY":      2,
		"WINDOW_WEEK":     3,
	}
)

Enum value maps for Window.

View Source
var (
	Tier_name = map[int32]string{
		0: "TIER_UNKNOWN",
		1: "TIER_HOSTED",
		2: "TIER_ADMITTED",
		3: "TIER_DEDICATED",
	}
	Tier_value = map[string]int32{
		"TIER_UNKNOWN":   0,
		"TIER_HOSTED":    1,
		"TIER_ADMITTED":  2,
		"TIER_DEDICATED": 3,
	}
)

Enum value maps for Tier.

View Source
var (
	Hud_name = map[int32]string{
		0: "HUD_UNKNOWN",
		1: "HUD_END_CARD",
	}
	Hud_value = map[string]int32{
		"HUD_UNKNOWN":  0,
		"HUD_END_CARD": 1,
	}
)

Enum value maps for Hud.

View Source
var (
	Board_Unit_name = map[int32]string{
		0: "UNIT_UNKNOWN",
		1: "UNIT_NUMBER",
		2: "UNIT_MILLISECONDS",
	}
	Board_Unit_value = map[string]int32{
		"UNIT_UNKNOWN":      0,
		"UNIT_NUMBER":       1,
		"UNIT_MILLISECONDS": 2,
	}
)

Enum value maps for Board_Unit.

View Source
var (
	Board_Order_name = map[int32]string{
		0: "ORDER_UNKNOWN",
		1: "ORDER_DESCENDING",
		2: "ORDER_ASCENDING",
	}
	Board_Order_value = map[string]int32{
		"ORDER_UNKNOWN":    0,
		"ORDER_DESCENDING": 1,
		"ORDER_ASCENDING":  2,
	}
)

Enum value maps for Board_Order.

View Source
var (
	Board_Keep_name = map[int32]string{
		0: "KEEP_UNKNOWN",
		1: "KEEP_BEST",
		2: "KEEP_SUM",
		3: "KEEP_COUNT",
		4: "KEEP_LATEST",
		5: "KEEP_RATING",
	}
	Board_Keep_value = map[string]int32{
		"KEEP_UNKNOWN": 0,
		"KEEP_BEST":    1,
		"KEEP_SUM":     2,
		"KEEP_COUNT":   3,
		"KEEP_LATEST":  4,
		"KEEP_RATING":  5,
	}
)

Enum value maps for Board_Keep.

View Source
var (
	Board_Rating_name = map[int32]string{
		0: "RATING_UNKNOWN",
		1: "RATING_ELO",
		2: "RATING_GLICKO2",
	}
	Board_Rating_value = map[string]int32{
		"RATING_UNKNOWN": 0,
		"RATING_ELO":     1,
		"RATING_GLICKO2": 2,
	}
)

Enum value maps for Board_Rating.

Functions

This section is empty.

Types

type Board

type Board struct {

	// Name names the board in the mod's code: up to 64 letters, digits,
	// underscores and dots, starting with a letter or an underscore.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Label is the board's title on screen, such as "Fastest clear".
	Label string      `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Unit  Board_Unit  `protobuf:"varint,3,opt,name=unit,proto3" json:"unit,omitempty"`
	Order Board_Order `protobuf:"varint,4,opt,name=order,proto3" json:"order,omitempty"`
	Keep  Board_Keep  `protobuf:"varint,5,opt,name=keep,proto3" json:"keep,omitempty"`
	// Rating is how a KEEP_RATING board rates; other boards leave it unset.
	Rating Board_Rating `protobuf:"varint,6,opt,name=rating,proto3" json:"rating,omitempty"`
	// Partitions split the board into separate rankings, such as one per
	// course. Every score names a value for each.
	Partitions []*Partition `protobuf:"bytes,7,rep,name=partitions,proto3" json:"partitions,omitempty"`
	// Windows are the time ranges a standing is kept for. Empty keeps all
	// time alone.
	Windows []Window `protobuf:"varint,8,rep,packed,name=windows,proto3" json:"windows,omitempty"`
	// Tier is the least trusted host whose scores rank. Unset ranks every
	// host's.
	Tier Tier `protobuf:"varint,9,opt,name=tier,proto3" json:"tier,omitempty"`
	// Lowest is the lowest plausible value. A host holds a score below it
	// for review rather than ranking it.
	Lowest *int64 `protobuf:"varint,10,opt,name=lowest,proto3,oneof" json:"lowest,omitempty"`
	// Highest is the highest plausible value. A host holds a score above it
	// for review rather than ranking it.
	Highest *int64 `protobuf:"varint,11,opt,name=highest,proto3,oneof" json:"highest,omitempty"`
	// Version starts a fresh ranking when raised; each version keeps its own
	// standings. Raise it when the unit, order, keep rule, rating or
	// partitions change, since the old standings no longer compare.
	Version uint32 `protobuf:"varint,12,opt,name=version,proto3" json:"version,omitempty"`
	// Hud asks the host to draw the board on the player's HUD.
	Hud Hud `protobuf:"varint,13,opt,name=hud,proto3" json:"hud,omitempty"`
	// TeamSize ranks teams of this many players, two to four, in place of
	// single players: each score names the scoring player's teammates, the
	// same players in any order are one team, and a standing names its team's
	// players. Zero or one ranks single players. A team board keeps no rating.
	TeamSize uint32 `protobuf:"varint,14,opt,name=team_size,json=teamSize,proto3" json:"teamSize,omitempty"`
	// contains filtered or unexported fields
}

Board is one ranking a mod declares in its manifest, such as the fastest clear of each course. A host that serves the scores service keeps one standing per player in each partition and window the board declares.

func (*Board) CloneMessageVT

func (m *Board) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Board) CloneVT

func (m *Board) CloneVT() *Board

func (*Board) EqualMessageVT

func (this *Board) EqualMessageVT(thatMsg any) bool

func (*Board) EqualVT

func (this *Board) EqualVT(that *Board) bool

func (*Board) GetHighest

func (x *Board) GetHighest() int64

func (*Board) GetHud

func (x *Board) GetHud() Hud

func (*Board) GetKeep

func (x *Board) GetKeep() Board_Keep

func (*Board) GetLabel

func (x *Board) GetLabel() string

func (*Board) GetLowest

func (x *Board) GetLowest() int64

func (*Board) GetName

func (x *Board) GetName() string

func (*Board) GetOrder

func (x *Board) GetOrder() Board_Order

func (*Board) GetPartitions

func (x *Board) GetPartitions() []*Partition

func (*Board) GetRating

func (x *Board) GetRating() Board_Rating

func (*Board) GetTeamSize

func (x *Board) GetTeamSize() uint32

func (*Board) GetTier

func (x *Board) GetTier() Tier

func (*Board) GetUnit

func (x *Board) GetUnit() Board_Unit

func (*Board) GetVersion

func (x *Board) GetVersion() uint32

func (*Board) GetWindows

func (x *Board) GetWindows() []Window

func (*Board) MarshalJSON

func (x *Board) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Board to JSON.

func (*Board) MarshalProtoJSON

func (x *Board) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Board message to JSON.

func (*Board) MarshalProtoText

func (x *Board) MarshalProtoText() string

func (*Board) MarshalToSizedBufferVT

func (m *Board) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Board) MarshalToVT

func (m *Board) MarshalToVT(dAtA []byte) (int, error)

func (*Board) MarshalVT

func (m *Board) MarshalVT() (dAtA []byte, err error)

func (*Board) ProtoMessage

func (*Board) ProtoMessage()

func (*Board) Reset

func (x *Board) Reset()

func (*Board) SizeVT

func (m *Board) SizeVT() (n int)

func (*Board) String

func (x *Board) String() string

func (*Board) UnmarshalJSON

func (x *Board) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Board from JSON.

func (*Board) UnmarshalProtoJSON

func (x *Board) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Board message from JSON.

func (*Board) UnmarshalVT

func (m *Board) UnmarshalVT(dAtA []byte) error

type BoardPage

type BoardPage struct {

	// Rows are the standings in rank order.
	Rows []*Standing `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
	// Player is the asked player's row, when they hold a standing.
	Player *Standing `protobuf:"bytes,2,opt,name=player,proto3" json:"player,omitempty"`
	// contains filtered or unexported fields
}

BoardPage is a page of one board, the response of the Read method.

func (*BoardPage) CloneMessageVT

func (m *BoardPage) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*BoardPage) CloneVT

func (m *BoardPage) CloneVT() *BoardPage

func (*BoardPage) EqualMessageVT

func (this *BoardPage) EqualMessageVT(thatMsg any) bool

func (*BoardPage) EqualVT

func (this *BoardPage) EqualVT(that *BoardPage) bool

func (*BoardPage) GetPlayer

func (x *BoardPage) GetPlayer() *Standing

func (*BoardPage) GetRows

func (x *BoardPage) GetRows() []*Standing

func (*BoardPage) MarshalJSON

func (x *BoardPage) MarshalJSON() ([]byte, error)

MarshalJSON marshals the BoardPage to JSON.

func (*BoardPage) MarshalProtoJSON

func (x *BoardPage) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the BoardPage message to JSON.

func (*BoardPage) MarshalProtoText

func (x *BoardPage) MarshalProtoText() string

func (*BoardPage) MarshalToSizedBufferVT

func (m *BoardPage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BoardPage) MarshalToVT

func (m *BoardPage) MarshalToVT(dAtA []byte) (int, error)

func (*BoardPage) MarshalVT

func (m *BoardPage) MarshalVT() (dAtA []byte, err error)

func (*BoardPage) ProtoMessage

func (*BoardPage) ProtoMessage()

func (*BoardPage) Reset

func (x *BoardPage) Reset()

func (*BoardPage) SizeVT

func (m *BoardPage) SizeVT() (n int)

func (*BoardPage) String

func (x *BoardPage) String() string

func (*BoardPage) UnmarshalJSON

func (x *BoardPage) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the BoardPage from JSON.

func (*BoardPage) UnmarshalProtoJSON

func (x *BoardPage) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the BoardPage message from JSON.

func (*BoardPage) UnmarshalVT

func (m *BoardPage) UnmarshalVT(dAtA []byte) error

type BoardQuery

type BoardQuery struct {

	// Board names a board the manifest declares.
	Board string `protobuf:"bytes,1,opt,name=board,proto3" json:"board,omitempty"`
	// Partition names a value for each of the board's partitions.
	Partition map[string]string `` /* 159-byte string literal not displayed */
	// Window is one of the board's windows; unset reads all time.
	Window Window `protobuf:"varint,3,opt,name=window,proto3" json:"window,omitempty"`
	// Offset skips that many rows from the top.
	Offset uint32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	// Limit bounds the rows; zero reads ten.
	Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	// Player asks for this player's own row too, by server slot.
	Player *int32 `protobuf:"varint,6,opt,name=player,proto3,oneof" json:"player,omitempty"`
	// Connection identifies the current viewer when Player is set.
	Connection *ScoreConnection `protobuf:"bytes,7,opt,name=connection,proto3" json:"connection,omitempty"`
	// Teammates name the viewer's teammates on a team board, so Player's row
	// is their team's; each is a player in the game now.
	Teammates []*Teammate `protobuf:"bytes,8,rep,name=teammates,proto3" json:"teammates,omitempty"`
	// contains filtered or unexported fields
}

BoardQuery reads a page of one board, the request of the scores service's asynchronous Read method, returning BoardPage.

func (*BoardQuery) CloneMessageVT

func (m *BoardQuery) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*BoardQuery) CloneVT

func (m *BoardQuery) CloneVT() *BoardQuery

func (*BoardQuery) EqualMessageVT

func (this *BoardQuery) EqualMessageVT(thatMsg any) bool

func (*BoardQuery) EqualVT

func (this *BoardQuery) EqualVT(that *BoardQuery) bool

func (*BoardQuery) GetBoard

func (x *BoardQuery) GetBoard() string

func (*BoardQuery) GetConnection added in v0.1.88

func (x *BoardQuery) GetConnection() *ScoreConnection

func (*BoardQuery) GetLimit

func (x *BoardQuery) GetLimit() uint32

func (*BoardQuery) GetOffset

func (x *BoardQuery) GetOffset() uint32

func (*BoardQuery) GetPartition

func (x *BoardQuery) GetPartition() map[string]string

func (*BoardQuery) GetPlayer

func (x *BoardQuery) GetPlayer() int32

func (*BoardQuery) GetTeammates

func (x *BoardQuery) GetTeammates() []*Teammate

func (*BoardQuery) GetWindow

func (x *BoardQuery) GetWindow() Window

func (*BoardQuery) MarshalJSON

func (x *BoardQuery) MarshalJSON() ([]byte, error)

MarshalJSON marshals the BoardQuery to JSON.

func (*BoardQuery) MarshalProtoJSON

func (x *BoardQuery) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the BoardQuery message to JSON.

func (*BoardQuery) MarshalProtoText

func (x *BoardQuery) MarshalProtoText() string

func (*BoardQuery) MarshalToSizedBufferVT

func (m *BoardQuery) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BoardQuery) MarshalToVT

func (m *BoardQuery) MarshalToVT(dAtA []byte) (int, error)

func (*BoardQuery) MarshalVT

func (m *BoardQuery) MarshalVT() (dAtA []byte, err error)

func (*BoardQuery) ProtoMessage

func (*BoardQuery) ProtoMessage()

func (*BoardQuery) Reset

func (x *BoardQuery) Reset()

func (*BoardQuery) SizeVT

func (m *BoardQuery) SizeVT() (n int)

func (*BoardQuery) String

func (x *BoardQuery) String() string

func (*BoardQuery) UnmarshalJSON

func (x *BoardQuery) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the BoardQuery from JSON.

func (*BoardQuery) UnmarshalProtoJSON

func (x *BoardQuery) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the BoardQuery message from JSON.

func (*BoardQuery) UnmarshalVT

func (m *BoardQuery) UnmarshalVT(dAtA []byte) error

type BoardQuery_PartitionEntry

type BoardQuery_PartitionEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BoardQuery_PartitionEntry) GetKey

func (x *BoardQuery_PartitionEntry) GetKey() string

func (*BoardQuery_PartitionEntry) GetValue

func (x *BoardQuery_PartitionEntry) GetValue() string

func (*BoardQuery_PartitionEntry) MarshalJSON

func (x *BoardQuery_PartitionEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the BoardQuery_PartitionEntry to JSON.

func (*BoardQuery_PartitionEntry) MarshalProtoJSON

func (x *BoardQuery_PartitionEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the BoardQuery_PartitionEntry message to JSON.

func (*BoardQuery_PartitionEntry) MarshalProtoText

func (x *BoardQuery_PartitionEntry) MarshalProtoText() string

func (*BoardQuery_PartitionEntry) ProtoMessage

func (*BoardQuery_PartitionEntry) ProtoMessage()

func (*BoardQuery_PartitionEntry) Reset

func (x *BoardQuery_PartitionEntry) Reset()

func (*BoardQuery_PartitionEntry) String

func (x *BoardQuery_PartitionEntry) String() string

func (*BoardQuery_PartitionEntry) UnmarshalJSON

func (x *BoardQuery_PartitionEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the BoardQuery_PartitionEntry from JSON.

func (*BoardQuery_PartitionEntry) UnmarshalProtoJSON

func (x *BoardQuery_PartitionEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the BoardQuery_PartitionEntry message from JSON.

type Board_Keep

type Board_Keep int32

Keep is what a standing keeps of a player's scores.

const (
	// KEEP_UNKNOWN is an unset or unsupported rule.
	Board_KEEP_UNKNOWN Board_Keep = 0
	// KEEP_BEST keeps the best value by the board's order.
	Board_KEEP_BEST Board_Keep = 1
	// KEEP_SUM adds the values.
	Board_KEEP_SUM Board_Keep = 2
	// KEEP_COUNT counts the scores.
	Board_KEEP_COUNT Board_Keep = 3
	// KEEP_LATEST keeps the value of the latest score.
	Board_KEEP_LATEST Board_Keep = 4
	// KEEP_RATING keeps a rating moved by each match the board's rating
	// rates; the board takes matches, not scores.
	Board_KEEP_RATING Board_Keep = 5
)

func (Board_Keep) Enum

func (x Board_Keep) Enum() *Board_Keep

func (Board_Keep) MarshalJSON

func (x Board_Keep) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Board_Keep to JSON.

func (Board_Keep) MarshalProtoJSON

func (x Board_Keep) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Board_Keep to JSON.

func (Board_Keep) MarshalProtoText

func (x Board_Keep) MarshalProtoText() string

func (Board_Keep) MarshalText

func (x Board_Keep) MarshalText() ([]byte, error)

MarshalText marshals the Board_Keep to text.

func (Board_Keep) String

func (x Board_Keep) String() string

func (*Board_Keep) UnmarshalJSON

func (x *Board_Keep) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Board_Keep from JSON.

func (*Board_Keep) UnmarshalProtoJSON

func (x *Board_Keep) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Board_Keep from JSON.

func (*Board_Keep) UnmarshalText

func (x *Board_Keep) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Board_Keep from text.

type Board_Order

type Board_Order int32

Order is which values rank first.

const (
	// ORDER_UNKNOWN is an unset or unsupported order.
	Board_ORDER_UNKNOWN Board_Order = 0
	// ORDER_DESCENDING ranks the highest value first, as for points.
	Board_ORDER_DESCENDING Board_Order = 1
	// ORDER_ASCENDING ranks the lowest value first, as for a time.
	Board_ORDER_ASCENDING Board_Order = 2
)

func (Board_Order) Enum

func (x Board_Order) Enum() *Board_Order

func (Board_Order) MarshalJSON

func (x Board_Order) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Board_Order to JSON.

func (Board_Order) MarshalProtoJSON

func (x Board_Order) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Board_Order to JSON.

func (Board_Order) MarshalProtoText

func (x Board_Order) MarshalProtoText() string

func (Board_Order) MarshalText

func (x Board_Order) MarshalText() ([]byte, error)

MarshalText marshals the Board_Order to text.

func (Board_Order) String

func (x Board_Order) String() string

func (*Board_Order) UnmarshalJSON

func (x *Board_Order) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Board_Order from JSON.

func (*Board_Order) UnmarshalProtoJSON

func (x *Board_Order) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Board_Order from JSON.

func (*Board_Order) UnmarshalText

func (x *Board_Order) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Board_Order from text.

type Board_Rating

type Board_Rating int32

Rating is how a rating board moves its players from a match's places.

const (
	// RATING_UNKNOWN is an unset or unsupported rating.
	Board_RATING_UNKNOWN Board_Rating = 0
	// RATING_ELO rates each pair of players in a match by Elo.
	Board_RATING_ELO Board_Rating = 1
	// RATING_GLICKO2 rates by Glicko-2, which keeps a deviation that marks
	// a new player's rating as provisional and settles it faster.
	Board_RATING_GLICKO2 Board_Rating = 2
)

func (Board_Rating) Enum

func (x Board_Rating) Enum() *Board_Rating

func (Board_Rating) MarshalJSON

func (x Board_Rating) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Board_Rating to JSON.

func (Board_Rating) MarshalProtoJSON

func (x Board_Rating) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Board_Rating to JSON.

func (Board_Rating) MarshalProtoText

func (x Board_Rating) MarshalProtoText() string

func (Board_Rating) MarshalText

func (x Board_Rating) MarshalText() ([]byte, error)

MarshalText marshals the Board_Rating to text.

func (Board_Rating) String

func (x Board_Rating) String() string

func (*Board_Rating) UnmarshalJSON

func (x *Board_Rating) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Board_Rating from JSON.

func (*Board_Rating) UnmarshalProtoJSON

func (x *Board_Rating) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Board_Rating from JSON.

func (*Board_Rating) UnmarshalText

func (x *Board_Rating) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Board_Rating from text.

type Board_Unit

type Board_Unit int32

Unit is what a board's values measure, so a surface can show them.

const (
	// UNIT_UNKNOWN is an unset or unsupported unit.
	Board_UNIT_UNKNOWN Board_Unit = 0
	// UNIT_NUMBER is a plain number, such as points or a level.
	Board_UNIT_NUMBER Board_Unit = 1
	// UNIT_MILLISECONDS is a duration in milliseconds.
	Board_UNIT_MILLISECONDS Board_Unit = 2
)

func (Board_Unit) Enum

func (x Board_Unit) Enum() *Board_Unit

func (Board_Unit) MarshalJSON

func (x Board_Unit) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Board_Unit to JSON.

func (Board_Unit) MarshalProtoJSON

func (x Board_Unit) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Board_Unit to JSON.

func (Board_Unit) MarshalProtoText

func (x Board_Unit) MarshalProtoText() string

func (Board_Unit) MarshalText

func (x Board_Unit) MarshalText() ([]byte, error)

MarshalText marshals the Board_Unit to text.

func (Board_Unit) String

func (x Board_Unit) String() string

func (*Board_Unit) UnmarshalJSON

func (x *Board_Unit) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Board_Unit from JSON.

func (*Board_Unit) UnmarshalProtoJSON

func (x *Board_Unit) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Board_Unit from JSON.

func (*Board_Unit) UnmarshalText

func (x *Board_Unit) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Board_Unit from text.

type Hud

type Hud int32

Hud is how the host draws a board on the player's HUD.

const (
	// HUD_UNKNOWN draws nothing; the mod draws its own.
	Hud_HUD_UNKNOWN Hud = 0
	// HUD_END_CARD shows the player's place after each score, such as "New
	// best, 38th this week".
	Hud_HUD_END_CARD Hud = 1
)

func (Hud) Enum

func (x Hud) Enum() *Hud

func (Hud) MarshalJSON

func (x Hud) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Hud to JSON.

func (Hud) MarshalProtoJSON

func (x Hud) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Hud to JSON.

func (Hud) MarshalProtoText

func (x Hud) MarshalProtoText() string

func (Hud) MarshalText

func (x Hud) MarshalText() ([]byte, error)

MarshalText marshals the Hud to text.

func (Hud) String

func (x Hud) String() string

func (*Hud) UnmarshalJSON

func (x *Hud) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Hud from JSON.

func (*Hud) UnmarshalProtoJSON

func (x *Hud) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Hud from JSON.

func (*Hud) UnmarshalText

func (x *Hud) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Hud from text.

type MatchReport

type MatchReport struct {

	// Board names a board the manifest declares.
	Board string `protobuf:"bytes,1,opt,name=board,proto3" json:"board,omitempty"`
	// Places are the players' finishing places.
	Places []*Place `protobuf:"bytes,2,rep,name=places,proto3" json:"places,omitempty"`
	// Partition names a value for each of the board's partitions.
	Partition map[string]string `` /* 159-byte string literal not displayed */
	// Key identifies the round or match within this game. Empty identifies
	// the sole match on this board in the game.
	Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	// EarnedAtUnixMillis is when the match ended; zero takes the host's clock.
	EarnedAtUnixMillis int64 `protobuf:"varint,5,opt,name=earned_at_unix_millis,json=earnedAtUnixMillis,proto3" json:"earnedAtUnixMillis,omitempty"`
	// Evidence names what shows the match, such as a recording.
	Evidence string `protobuf:"bytes,6,opt,name=evidence,proto3" json:"evidence,omitempty"`
	// contains filtered or unexported fields
}

MatchReport reports one match's places on a rating or match board, the request of the scores service's asynchronous Match method, returning ScoreAccepted.

func (*MatchReport) CloneMessageVT

func (m *MatchReport) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*MatchReport) CloneVT

func (m *MatchReport) CloneVT() *MatchReport

func (*MatchReport) EqualMessageVT

func (this *MatchReport) EqualMessageVT(thatMsg any) bool

func (*MatchReport) EqualVT

func (this *MatchReport) EqualVT(that *MatchReport) bool

func (*MatchReport) GetBoard

func (x *MatchReport) GetBoard() string

func (*MatchReport) GetEarnedAtUnixMillis

func (x *MatchReport) GetEarnedAtUnixMillis() int64

func (*MatchReport) GetEvidence

func (x *MatchReport) GetEvidence() string

func (*MatchReport) GetKey

func (x *MatchReport) GetKey() string

func (*MatchReport) GetPartition

func (x *MatchReport) GetPartition() map[string]string

func (*MatchReport) GetPlaces

func (x *MatchReport) GetPlaces() []*Place

func (*MatchReport) MarshalJSON

func (x *MatchReport) MarshalJSON() ([]byte, error)

MarshalJSON marshals the MatchReport to JSON.

func (*MatchReport) MarshalProtoJSON

func (x *MatchReport) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the MatchReport message to JSON.

func (*MatchReport) MarshalProtoText

func (x *MatchReport) MarshalProtoText() string

func (*MatchReport) MarshalToSizedBufferVT

func (m *MatchReport) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MatchReport) MarshalToVT

func (m *MatchReport) MarshalToVT(dAtA []byte) (int, error)

func (*MatchReport) MarshalVT

func (m *MatchReport) MarshalVT() (dAtA []byte, err error)

func (*MatchReport) ProtoMessage

func (*MatchReport) ProtoMessage()

func (*MatchReport) Reset

func (x *MatchReport) Reset()

func (*MatchReport) SizeVT

func (m *MatchReport) SizeVT() (n int)

func (*MatchReport) String

func (x *MatchReport) String() string

func (*MatchReport) UnmarshalJSON

func (x *MatchReport) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the MatchReport from JSON.

func (*MatchReport) UnmarshalProtoJSON

func (x *MatchReport) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the MatchReport message from JSON.

func (*MatchReport) UnmarshalVT

func (m *MatchReport) UnmarshalVT(dAtA []byte) error

type MatchReport_PartitionEntry

type MatchReport_PartitionEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchReport_PartitionEntry) GetKey

func (x *MatchReport_PartitionEntry) GetKey() string

func (*MatchReport_PartitionEntry) GetValue

func (x *MatchReport_PartitionEntry) GetValue() string

func (*MatchReport_PartitionEntry) MarshalJSON

func (x *MatchReport_PartitionEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the MatchReport_PartitionEntry to JSON.

func (*MatchReport_PartitionEntry) MarshalProtoJSON

func (x *MatchReport_PartitionEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the MatchReport_PartitionEntry message to JSON.

func (*MatchReport_PartitionEntry) MarshalProtoText

func (x *MatchReport_PartitionEntry) MarshalProtoText() string

func (*MatchReport_PartitionEntry) ProtoMessage

func (*MatchReport_PartitionEntry) ProtoMessage()

func (*MatchReport_PartitionEntry) Reset

func (x *MatchReport_PartitionEntry) Reset()

func (*MatchReport_PartitionEntry) String

func (x *MatchReport_PartitionEntry) String() string

func (*MatchReport_PartitionEntry) UnmarshalJSON

func (x *MatchReport_PartitionEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the MatchReport_PartitionEntry from JSON.

func (*MatchReport_PartitionEntry) UnmarshalProtoJSON

func (x *MatchReport_PartitionEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the MatchReport_PartitionEntry message from JSON.

type Member

type Member struct {

	// SteamId is the player's SteamID64.
	SteamId uint64 `protobuf:"varint,1,opt,name=steam_id,json=steamId,proto3" json:"steamId,omitempty"`
	// Name is the player's name as the host shows it.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Member is one player of a team's standing.

func (*Member) CloneMessageVT

func (m *Member) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Member) CloneVT

func (m *Member) CloneVT() *Member

func (*Member) EqualMessageVT

func (this *Member) EqualMessageVT(thatMsg any) bool

func (*Member) EqualVT

func (this *Member) EqualVT(that *Member) bool

func (*Member) GetName

func (x *Member) GetName() string

func (*Member) GetSteamId

func (x *Member) GetSteamId() uint64

func (*Member) MarshalJSON

func (x *Member) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Member to JSON.

func (*Member) MarshalProtoJSON

func (x *Member) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Member message to JSON.

func (*Member) MarshalProtoText

func (x *Member) MarshalProtoText() string

func (*Member) MarshalToSizedBufferVT

func (m *Member) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Member) MarshalToVT

func (m *Member) MarshalToVT(dAtA []byte) (int, error)

func (*Member) MarshalVT

func (m *Member) MarshalVT() (dAtA []byte, err error)

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) Reset

func (x *Member) Reset()

func (*Member) SizeVT

func (m *Member) SizeVT() (n int)

func (*Member) String

func (x *Member) String() string

func (*Member) UnmarshalJSON

func (x *Member) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Member from JSON.

func (*Member) UnmarshalProtoJSON

func (x *Member) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Member message from JSON.

func (*Member) UnmarshalVT

func (m *Member) UnmarshalVT(dAtA []byte) error

type Partition

type Partition struct {

	// Name names the dimension: up to 32 letters, digits, underscores and
	// dots, starting with a letter or an underscore.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Values are the values a score may name: letters, digits, dots,
	// underscores and hyphens. Empty accepts any such value.
	Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

Partition is one dimension a board splits its rankings by.

func (*Partition) CloneMessageVT

func (m *Partition) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Partition) CloneVT

func (m *Partition) CloneVT() *Partition

func (*Partition) EqualMessageVT

func (this *Partition) EqualMessageVT(thatMsg any) bool

func (*Partition) EqualVT

func (this *Partition) EqualVT(that *Partition) bool

func (*Partition) GetName

func (x *Partition) GetName() string

func (*Partition) GetValues

func (x *Partition) GetValues() []string

func (*Partition) MarshalJSON

func (x *Partition) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Partition to JSON.

func (*Partition) MarshalProtoJSON

func (x *Partition) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Partition message to JSON.

func (*Partition) MarshalProtoText

func (x *Partition) MarshalProtoText() string

func (*Partition) MarshalToSizedBufferVT

func (m *Partition) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Partition) MarshalToVT

func (m *Partition) MarshalToVT(dAtA []byte) (int, error)

func (*Partition) MarshalVT

func (m *Partition) MarshalVT() (dAtA []byte, err error)

func (*Partition) ProtoMessage

func (*Partition) ProtoMessage()

func (*Partition) Reset

func (x *Partition) Reset()

func (*Partition) SizeVT

func (m *Partition) SizeVT() (n int)

func (*Partition) String

func (x *Partition) String() string

func (*Partition) UnmarshalJSON

func (x *Partition) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Partition from JSON.

func (*Partition) UnmarshalProtoJSON

func (x *Partition) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Partition message from JSON.

func (*Partition) UnmarshalVT

func (m *Partition) UnmarshalVT(dAtA []byte) error

type Place

type Place struct {

	// Player is the player's server slot.
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Place is 1 for the winner. Players who tie, such as one team's members,
	// share a place.
	Place uint32 `protobuf:"varint,2,opt,name=place,proto3" json:"place,omitempty"`
	// Value is the player's score in the match, for a board that keeps one.
	Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
	// Connection is the participant's enrollment proof from Bind.
	Connection *ScoreConnection `protobuf:"bytes,4,opt,name=connection,proto3" json:"connection,omitempty"`
	// contains filtered or unexported fields
}

Place is one player's finishing place in a match.

func (*Place) CloneMessageVT

func (m *Place) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Place) CloneVT

func (m *Place) CloneVT() *Place

func (*Place) EqualMessageVT

func (this *Place) EqualMessageVT(thatMsg any) bool

func (*Place) EqualVT

func (this *Place) EqualVT(that *Place) bool

func (*Place) GetConnection added in v0.1.88

func (x *Place) GetConnection() *ScoreConnection

func (*Place) GetPlace

func (x *Place) GetPlace() uint32

func (*Place) GetPlayer

func (x *Place) GetPlayer() int32

func (*Place) GetValue

func (x *Place) GetValue() int64

func (*Place) MarshalJSON

func (x *Place) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Place to JSON.

func (*Place) MarshalProtoJSON

func (x *Place) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Place message to JSON.

func (*Place) MarshalProtoText

func (x *Place) MarshalProtoText() string

func (*Place) MarshalToSizedBufferVT

func (m *Place) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Place) MarshalToVT

func (m *Place) MarshalToVT(dAtA []byte) (int, error)

func (*Place) MarshalVT

func (m *Place) MarshalVT() (dAtA []byte, err error)

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) Reset

func (x *Place) Reset()

func (*Place) SizeVT

func (m *Place) SizeVT() (n int)

func (*Place) String

func (x *Place) String() string

func (*Place) UnmarshalJSON

func (x *Place) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Place from JSON.

func (*Place) UnmarshalProtoJSON

func (x *Place) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Place message from JSON.

func (*Place) UnmarshalVT

func (m *Place) UnmarshalVT(dAtA []byte) error

type ScoreAccepted added in v0.1.88

type ScoreAccepted struct {
	// contains filtered or unexported fields
}

ScoreAccepted is an empty reply to a report the host accepted. A refusal ends the asynchronous service call with an error.

func (*ScoreAccepted) CloneMessageVT added in v0.1.88

func (m *ScoreAccepted) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ScoreAccepted) CloneVT added in v0.1.88

func (m *ScoreAccepted) CloneVT() *ScoreAccepted

func (*ScoreAccepted) EqualMessageVT added in v0.1.88

func (this *ScoreAccepted) EqualMessageVT(thatMsg any) bool

func (*ScoreAccepted) EqualVT added in v0.1.88

func (this *ScoreAccepted) EqualVT(that *ScoreAccepted) bool

func (*ScoreAccepted) MarshalJSON added in v0.1.88

func (x *ScoreAccepted) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ScoreAccepted to JSON.

func (*ScoreAccepted) MarshalProtoJSON added in v0.1.88

func (x *ScoreAccepted) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ScoreAccepted message to JSON.

func (*ScoreAccepted) MarshalProtoText added in v0.1.88

func (x *ScoreAccepted) MarshalProtoText() string

func (*ScoreAccepted) MarshalToSizedBufferVT added in v0.1.88

func (m *ScoreAccepted) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ScoreAccepted) MarshalToVT added in v0.1.88

func (m *ScoreAccepted) MarshalToVT(dAtA []byte) (int, error)

func (*ScoreAccepted) MarshalVT added in v0.1.88

func (m *ScoreAccepted) MarshalVT() (dAtA []byte, err error)

func (*ScoreAccepted) ProtoMessage added in v0.1.88

func (*ScoreAccepted) ProtoMessage()

func (*ScoreAccepted) Reset added in v0.1.88

func (x *ScoreAccepted) Reset()

func (*ScoreAccepted) SizeVT added in v0.1.88

func (m *ScoreAccepted) SizeVT() (n int)

func (*ScoreAccepted) String added in v0.1.88

func (x *ScoreAccepted) String() string

func (*ScoreAccepted) UnmarshalJSON added in v0.1.88

func (x *ScoreAccepted) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ScoreAccepted from JSON.

func (*ScoreAccepted) UnmarshalProtoJSON added in v0.1.88

func (x *ScoreAccepted) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ScoreAccepted message from JSON.

func (*ScoreAccepted) UnmarshalVT added in v0.1.88

func (m *ScoreAccepted) UnmarshalVT(dAtA []byte) error

type ScoreConnection added in v0.1.88

type ScoreConnection struct {

	// Slot is the player's server slot.
	Slot int32 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
	// SteamId is the human player's SteamID64.
	SteamId uint64 `protobuf:"varint,2,opt,name=steam_id,json=steamId,proto3" json:"steamId,omitempty"`
	// Generation changes when another connection takes the slot.
	Generation uint32 `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"`
	// Proof is assigned by Bind. Board reads check the live connection instead.
	Proof string `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

ScoreConnection names a human connection to the mod's game. The scores service's synchronous Bind method checks the live connection and returns this message with proof the mod can keep to report the result after a leave.

func (*ScoreConnection) CloneMessageVT added in v0.1.88

func (m *ScoreConnection) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ScoreConnection) CloneVT added in v0.1.88

func (m *ScoreConnection) CloneVT() *ScoreConnection

func (*ScoreConnection) EqualMessageVT added in v0.1.88

func (this *ScoreConnection) EqualMessageVT(thatMsg any) bool

func (*ScoreConnection) EqualVT added in v0.1.88

func (this *ScoreConnection) EqualVT(that *ScoreConnection) bool

func (*ScoreConnection) GetGeneration added in v0.1.88

func (x *ScoreConnection) GetGeneration() uint32

func (*ScoreConnection) GetProof added in v0.1.88

func (x *ScoreConnection) GetProof() string

func (*ScoreConnection) GetSlot added in v0.1.88

func (x *ScoreConnection) GetSlot() int32

func (*ScoreConnection) GetSteamId added in v0.1.88

func (x *ScoreConnection) GetSteamId() uint64

func (*ScoreConnection) MarshalJSON added in v0.1.88

func (x *ScoreConnection) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ScoreConnection to JSON.

func (*ScoreConnection) MarshalProtoJSON added in v0.1.88

func (x *ScoreConnection) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ScoreConnection message to JSON.

func (*ScoreConnection) MarshalProtoText added in v0.1.88

func (x *ScoreConnection) MarshalProtoText() string

func (*ScoreConnection) MarshalToSizedBufferVT added in v0.1.88

func (m *ScoreConnection) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ScoreConnection) MarshalToVT added in v0.1.88

func (m *ScoreConnection) MarshalToVT(dAtA []byte) (int, error)

func (*ScoreConnection) MarshalVT added in v0.1.88

func (m *ScoreConnection) MarshalVT() (dAtA []byte, err error)

func (*ScoreConnection) ProtoMessage added in v0.1.88

func (*ScoreConnection) ProtoMessage()

func (*ScoreConnection) Reset added in v0.1.88

func (x *ScoreConnection) Reset()

func (*ScoreConnection) SizeVT added in v0.1.88

func (m *ScoreConnection) SizeVT() (n int)

func (*ScoreConnection) String added in v0.1.88

func (x *ScoreConnection) String() string

func (*ScoreConnection) UnmarshalJSON added in v0.1.88

func (x *ScoreConnection) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ScoreConnection from JSON.

func (*ScoreConnection) UnmarshalProtoJSON added in v0.1.88

func (x *ScoreConnection) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ScoreConnection message from JSON.

func (*ScoreConnection) UnmarshalVT added in v0.1.88

func (m *ScoreConnection) UnmarshalVT(dAtA []byte) error

type ScoreReport

type ScoreReport struct {

	// Board names a board the manifest declares.
	Board string `protobuf:"bytes,1,opt,name=board,proto3" json:"board,omitempty"`
	// Player is the player's server slot.
	Player int32 `protobuf:"varint,2,opt,name=player,proto3" json:"player,omitempty"`
	// Value is the score in the board's unit.
	Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
	// Tiebreak ranks equal values, lower first, such as fewer deaths. Report
	// a negated value to rank a higher one first. Equal tiebreaks rank the
	// earlier score first.
	Tiebreak int64 `protobuf:"varint,4,opt,name=tiebreak,proto3" json:"tiebreak,omitempty"`
	// Partition names a value for each of the board's partitions.
	Partition map[string]string `` /* 159-byte string literal not displayed */
	// Key identifies the round or run within this game, so a resent report
	// counts once. Empty identifies the sole result for this player and board
	// in the game. Use distinct keys for distinct rounds or runs.
	Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
	// EarnedAtUnixMillis is when the player earned the score; zero takes the
	// host's clock. It decides the windows the score falls in.
	EarnedAtUnixMillis int64 `protobuf:"varint,7,opt,name=earned_at_unix_millis,json=earnedAtUnixMillis,proto3" json:"earnedAtUnixMillis,omitempty"`
	// Evidence names what shows the run, such as a recording, for a host
	// that keeps it.
	Evidence string `protobuf:"bytes,8,opt,name=evidence,proto3" json:"evidence,omitempty"`
	// Connection is the enrollment proof from Bind.
	Connection *ScoreConnection `protobuf:"bytes,9,opt,name=connection,proto3" json:"connection,omitempty"`
	// Teammates are the scoring player's teammates on a team board, the
	// board's team size less one; a board of single players takes none.
	Teammates []*Teammate `protobuf:"bytes,10,rep,name=teammates,proto3" json:"teammates,omitempty"`
	// contains filtered or unexported fields
}

ScoreReport reports one score for one player, the request of the scores service's asynchronous Report method, returning ScoreAccepted.

func (*ScoreReport) CloneMessageVT

func (m *ScoreReport) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ScoreReport) CloneVT

func (m *ScoreReport) CloneVT() *ScoreReport

func (*ScoreReport) EqualMessageVT

func (this *ScoreReport) EqualMessageVT(thatMsg any) bool

func (*ScoreReport) EqualVT

func (this *ScoreReport) EqualVT(that *ScoreReport) bool

func (*ScoreReport) GetBoard

func (x *ScoreReport) GetBoard() string

func (*ScoreReport) GetConnection added in v0.1.88

func (x *ScoreReport) GetConnection() *ScoreConnection

func (*ScoreReport) GetEarnedAtUnixMillis

func (x *ScoreReport) GetEarnedAtUnixMillis() int64

func (*ScoreReport) GetEvidence

func (x *ScoreReport) GetEvidence() string

func (*ScoreReport) GetKey

func (x *ScoreReport) GetKey() string

func (*ScoreReport) GetPartition

func (x *ScoreReport) GetPartition() map[string]string

func (*ScoreReport) GetPlayer

func (x *ScoreReport) GetPlayer() int32

func (*ScoreReport) GetTeammates

func (x *ScoreReport) GetTeammates() []*Teammate

func (*ScoreReport) GetTiebreak

func (x *ScoreReport) GetTiebreak() int64

func (*ScoreReport) GetValue

func (x *ScoreReport) GetValue() int64

func (*ScoreReport) MarshalJSON

func (x *ScoreReport) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ScoreReport to JSON.

func (*ScoreReport) MarshalProtoJSON

func (x *ScoreReport) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ScoreReport message to JSON.

func (*ScoreReport) MarshalProtoText

func (x *ScoreReport) MarshalProtoText() string

func (*ScoreReport) MarshalToSizedBufferVT

func (m *ScoreReport) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ScoreReport) MarshalToVT

func (m *ScoreReport) MarshalToVT(dAtA []byte) (int, error)

func (*ScoreReport) MarshalVT

func (m *ScoreReport) MarshalVT() (dAtA []byte, err error)

func (*ScoreReport) ProtoMessage

func (*ScoreReport) ProtoMessage()

func (*ScoreReport) Reset

func (x *ScoreReport) Reset()

func (*ScoreReport) SizeVT

func (m *ScoreReport) SizeVT() (n int)

func (*ScoreReport) String

func (x *ScoreReport) String() string

func (*ScoreReport) UnmarshalJSON

func (x *ScoreReport) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ScoreReport from JSON.

func (*ScoreReport) UnmarshalProtoJSON

func (x *ScoreReport) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ScoreReport message from JSON.

func (*ScoreReport) UnmarshalVT

func (m *ScoreReport) UnmarshalVT(dAtA []byte) error

type ScoreReport_PartitionEntry

type ScoreReport_PartitionEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ScoreReport_PartitionEntry) GetKey

func (x *ScoreReport_PartitionEntry) GetKey() string

func (*ScoreReport_PartitionEntry) GetValue

func (x *ScoreReport_PartitionEntry) GetValue() string

func (*ScoreReport_PartitionEntry) MarshalJSON

func (x *ScoreReport_PartitionEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ScoreReport_PartitionEntry to JSON.

func (*ScoreReport_PartitionEntry) MarshalProtoJSON

func (x *ScoreReport_PartitionEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ScoreReport_PartitionEntry message to JSON.

func (*ScoreReport_PartitionEntry) MarshalProtoText

func (x *ScoreReport_PartitionEntry) MarshalProtoText() string

func (*ScoreReport_PartitionEntry) ProtoMessage

func (*ScoreReport_PartitionEntry) ProtoMessage()

func (*ScoreReport_PartitionEntry) Reset

func (x *ScoreReport_PartitionEntry) Reset()

func (*ScoreReport_PartitionEntry) String

func (x *ScoreReport_PartitionEntry) String() string

func (*ScoreReport_PartitionEntry) UnmarshalJSON

func (x *ScoreReport_PartitionEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ScoreReport_PartitionEntry from JSON.

func (*ScoreReport_PartitionEntry) UnmarshalProtoJSON

func (x *ScoreReport_PartitionEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ScoreReport_PartitionEntry message from JSON.

type Standing

type Standing struct {

	// Rank is 1 for the top row.
	Rank uint32 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"`
	// SteamId is the player's SteamID64.
	SteamId uint64 `protobuf:"varint,2,opt,name=steam_id,json=steamId,proto3" json:"steamId,omitempty"`
	// Name is the player's name as the host shows it.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Value is the kept value in the board's unit.
	Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
	// Tiebreak is the kept score's tiebreak.
	Tiebreak int64 `protobuf:"varint,5,opt,name=tiebreak,proto3" json:"tiebreak,omitempty"`
	// Count is how many scores the standing kept.
	Count uint32 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
	// Members are a team's players on a team board, ordered by SteamID64;
	// SteamId and Name then belong to the first. A board of single players
	// lists none.
	Members []*Member `protobuf:"bytes,7,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

Standing is one player's place on one board, partition and window.

func (*Standing) CloneMessageVT

func (m *Standing) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Standing) CloneVT

func (m *Standing) CloneVT() *Standing

func (*Standing) EqualMessageVT

func (this *Standing) EqualMessageVT(thatMsg any) bool

func (*Standing) EqualVT

func (this *Standing) EqualVT(that *Standing) bool

func (*Standing) GetCount

func (x *Standing) GetCount() uint32

func (*Standing) GetMembers

func (x *Standing) GetMembers() []*Member

func (*Standing) GetName

func (x *Standing) GetName() string

func (*Standing) GetRank

func (x *Standing) GetRank() uint32

func (*Standing) GetSteamId

func (x *Standing) GetSteamId() uint64

func (*Standing) GetTiebreak

func (x *Standing) GetTiebreak() int64

func (*Standing) GetValue

func (x *Standing) GetValue() int64

func (*Standing) MarshalJSON

func (x *Standing) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Standing to JSON.

func (*Standing) MarshalProtoJSON

func (x *Standing) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Standing message to JSON.

func (*Standing) MarshalProtoText

func (x *Standing) MarshalProtoText() string

func (*Standing) MarshalToSizedBufferVT

func (m *Standing) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Standing) MarshalToVT

func (m *Standing) MarshalToVT(dAtA []byte) (int, error)

func (*Standing) MarshalVT

func (m *Standing) MarshalVT() (dAtA []byte, err error)

func (*Standing) ProtoMessage

func (*Standing) ProtoMessage()

func (*Standing) Reset

func (x *Standing) Reset()

func (*Standing) SizeVT

func (m *Standing) SizeVT() (n int)

func (*Standing) String

func (x *Standing) String() string

func (*Standing) UnmarshalJSON

func (x *Standing) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Standing from JSON.

func (*Standing) UnmarshalProtoJSON

func (x *Standing) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Standing message from JSON.

func (*Standing) UnmarshalVT

func (m *Standing) UnmarshalVT(dAtA []byte) error

type Teammate

type Teammate struct {

	// Player is the teammate's server slot.
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Connection is the teammate's enrollment proof from Bind in a report, or
	// their live connection in a read.
	Connection *ScoreConnection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"`
	// contains filtered or unexported fields
}

Teammate is one more player a team's score or a team's read names, with the connection that shows the player is in the game.

func (*Teammate) CloneMessageVT

func (m *Teammate) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Teammate) CloneVT

func (m *Teammate) CloneVT() *Teammate

func (*Teammate) EqualMessageVT

func (this *Teammate) EqualMessageVT(thatMsg any) bool

func (*Teammate) EqualVT

func (this *Teammate) EqualVT(that *Teammate) bool

func (*Teammate) GetConnection

func (x *Teammate) GetConnection() *ScoreConnection

func (*Teammate) GetPlayer

func (x *Teammate) GetPlayer() int32

func (*Teammate) MarshalJSON

func (x *Teammate) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Teammate to JSON.

func (*Teammate) MarshalProtoJSON

func (x *Teammate) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Teammate message to JSON.

func (*Teammate) MarshalProtoText

func (x *Teammate) MarshalProtoText() string

func (*Teammate) MarshalToSizedBufferVT

func (m *Teammate) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Teammate) MarshalToVT

func (m *Teammate) MarshalToVT(dAtA []byte) (int, error)

func (*Teammate) MarshalVT

func (m *Teammate) MarshalVT() (dAtA []byte, err error)

func (*Teammate) ProtoMessage

func (*Teammate) ProtoMessage()

func (*Teammate) Reset

func (x *Teammate) Reset()

func (*Teammate) SizeVT

func (m *Teammate) SizeVT() (n int)

func (*Teammate) String

func (x *Teammate) String() string

func (*Teammate) UnmarshalJSON

func (x *Teammate) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Teammate from JSON.

func (*Teammate) UnmarshalProtoJSON

func (x *Teammate) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Teammate message from JSON.

func (*Teammate) UnmarshalVT

func (m *Teammate) UnmarshalVT(dAtA []byte) error

type Tier

type Tier int32

Tier is how far a host trusts the server a score came from, from least to most trusted.

const (
	// TIER_UNKNOWN is an unset tier; as a board's minimum it ranks every host.
	Tier_TIER_UNKNOWN Tier = 0
	// TIER_HOSTED is a server a player runs on their own PC.
	Tier_TIER_HOSTED Tier = 1
	// TIER_ADMITTED is a player's own PC that the backend admitted to run this
	// release for this run.
	Tier_TIER_ADMITTED Tier = 2
	// TIER_DEDICATED is a dedicated server the backend runs.
	Tier_TIER_DEDICATED Tier = 3
)

func (Tier) Enum

func (x Tier) Enum() *Tier

func (Tier) MarshalJSON

func (x Tier) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Tier to JSON.

func (Tier) MarshalProtoJSON

func (x Tier) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Tier to JSON.

func (Tier) MarshalProtoText

func (x Tier) MarshalProtoText() string

func (Tier) MarshalText

func (x Tier) MarshalText() ([]byte, error)

MarshalText marshals the Tier to text.

func (Tier) String

func (x Tier) String() string

func (*Tier) UnmarshalJSON

func (x *Tier) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Tier from JSON.

func (*Tier) UnmarshalProtoJSON

func (x *Tier) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Tier from JSON.

func (*Tier) UnmarshalText

func (x *Tier) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Tier from text.

type Window

type Window int32

Window is a time range a board keeps standings for. Windows follow UTC.

const (
	// WINDOW_UNKNOWN is an unset or unsupported window.
	Window_WINDOW_UNKNOWN Window = 0
	// WINDOW_ALL_TIME keeps every score.
	Window_WINDOW_ALL_TIME Window = 1
	// WINDOW_DAY keeps the scores of one UTC day.
	Window_WINDOW_DAY Window = 2
	// WINDOW_WEEK keeps the scores of one week from Monday 00:00 UTC.
	Window_WINDOW_WEEK Window = 3
)

func (Window) Enum

func (x Window) Enum() *Window

func (Window) MarshalJSON

func (x Window) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Window to JSON.

func (Window) MarshalProtoJSON

func (x Window) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Window to JSON.

func (Window) MarshalProtoText

func (x Window) MarshalProtoText() string

func (Window) MarshalText

func (x Window) MarshalText() ([]byte, error)

MarshalText marshals the Window to text.

func (Window) String

func (x Window) String() string

func (*Window) UnmarshalJSON

func (x *Window) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Window from JSON.

func (*Window) UnmarshalProtoJSON

func (x *Window) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Window from JSON.

func (*Window) UnmarshalText

func (x *Window) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Window from text.

Jump to

Keyboard shortcuts

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