Documentation
¶
Overview ¶
Package boards holds the rules for the boards a mod declares in its manifest: which declarations a build may carry, and which partition values a score may name. A host that serves the scores service checks reports with the same rules.
Index ¶
- Constants
- func Find(manifest *wasm.Manifest, name string) *scorespb.Board
- func Partitioned(board *scorespb.Board, values map[string]string) error
- func Teamed(board *scorespb.Board, player int32, teammates []int32) error
- func Validate(manifest *wasm.Manifest) error
- func Windows(board *scorespb.Board) []scorespb.Window
Constants ¶
const MaxTeamSize = 4
MaxTeamSize is the most players a team board's team holds.
Variables ¶
This section is empty.
Functions ¶
func Partitioned ¶
Partitioned checks that values names one accepted value for each of board's partitions and nothing else.
func Teamed ¶
Teamed checks that a score or read on board names its teammates as the board's team takes them: the team size less one on a team board, each a different player and none the scoring player, and none on a board of single players. player is the scoring or reading player's slot, and teammates are the slots of the players the call names.
Types ¶
This section is empty.