Documentation
¶
Overview ¶
Package section names the parts a Stage is defined in, in their order, and lets a plugin refuse what is defined in the wrong one. A plugin may name parts of its own between them (Define) and give a game a Section of one to write into its Stage; a Stage written by hand is in none, and nothing is refused.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Part ¶
type Part uint8
Part is a part of a Stage's definition.
const ( Anytime Part = iota // a Stage written by hand Plugins // anything may be defined: the plugins define their own Players // the players and the plugins' keys Effects Rules // the roles and the plans too Commands Kinds // of cells and of units Controls // the game's own keys Spawn Scenes Done )
func Define ¶
Define is a part of a Stage's definition a plugin names, between the parts after and before. Call it once, for a package variable.
type Reader ¶
type Reader interface{ Section() Part }
Reader tells which part of the Stage is being defined.