LoadedGame beta
Interface of @v12-engine/client
ts
export interface LoadedGameA game with its view fetched (loadGame): its rules and how it looks, as one thing. What the client's scenes, a replay and a server's player are handed once a Game (createGame) is got ready in the page. The rules alone (rules) are what a server runs: it never sees the view
Members
contentPacks
ts
readonly contentPacks?: readonly string[];Its packs of content, by URL (packs/<id>/pack.json), fetched before its world is made and composed into it in this order (mergePacks, campaign plan RC6). None when left out
id
ts
readonly id: string;The id of its rules (Rules.id): what a save, a replay and a server call it by
rules
ts
readonly rules: Rules;The game's rules, as the hosts run them (Game.toRules())
view
ts
readonly view: GameView;The game's view: how it looks and sounds on the screen