Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildCommand ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func (*Builder) Manifest ¶
func (b *Builder) Manifest() (*ManifestV1, error)
func (*Builder) WatchedFiles ¶
type GameConfig ¶
type GameConfig struct { Root string `json:"root"` BuildCommands BuildCommand `json:"build"` WatchPaths []string `json:"watchPaths"` OutputFile string `json:"out"` }
type HistoryItem ¶ added in v0.2.0
type HistoryItem struct { Seq int `json:"seq"` State json.RawMessage `json:"state"` Data json.RawMessage `json:"data"` Position int `json:"position"` }
type InitialStateHistoryItem ¶ added in v0.2.0
type InitialStateHistoryItem struct { State json.RawMessage `json:"state"` Players []*Player `json:"players"` Settings json.RawMessage `json:"settings"` }
type ManifestV1 ¶
type ManifestV1 struct { MinimumPlayers int `json:"minPlayers"` MaximumPlayers int `json:"maxPlayers"` DefaultPlayers int `json:"defaultPlayers,omitempty"` UI UIConfig `json:"ui"` Game GameConfig `json:"game"` }
type Move ¶ added in v0.2.0
type Move struct { Position int `json:"position"` Data json.RawMessage `json:"data"` }
type ReprocessRequest ¶ added in v0.2.0
type ReprocessRequest struct { Setup *SetupState `json:"setup"` Moves []*Move `json:"moves"` }
type ReprocessResponse ¶ added in v0.2.0
type ReprocessResponse struct { InitialState json.RawMessage `json:"initialState"` Updates []json.RawMessage `json:"updates"` Error string `json:"error,omitempty"` }
type SaveStateData ¶ added in v0.2.0
type SaveStateData struct { RandomSeed string `json:"randomSeed"` Settings json.RawMessage `json:"settings"` Players []*Player `json:"players"` History []*HistoryItem `json:"history"` InitialState InitialStateHistoryItem `json:"initialState"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) BuildError ¶
type SetupState ¶ added in v0.2.0
type SetupState struct { RandomSeed string `json:"randomSeed"` Players []*Player `json:"players"` Settings json.RawMessage `json:"settings"` }
Click to show internal directories.
Click to hide internal directories.