PreparedGame beta
Interface of @v12-engine/client
export interface PreparedGameA game ready to be shown: the player's seat at it, and where their view starts
Members
debug
debug: boolean;Whether the player may use the debug tools (GameSource.debug)
local
local?: LocalSession;The seat when the game is played in the page: what the debug tools reach through
lookAt
lookAt?: Vec2;Where the player's view starts: where the editor looked or the source says, their start on the map, the middle of what they have, or the middle of the ground
pack
pack?: MapPack;The files the map brings with it: the source's, or the map being edited's
player
player: PlayerId;The player the client plays as, whose seat the view and the commands are
session
session: GameSession;The session the game runs on: a local one in the page or a remote one on a server
startView
startView?: string;The view of the map the player starts with, by name, when the map says (none where the editor said where to look)
view
view?: GameView;The game's view with its packs' looks laid over it, where it has packs of content (mergePacks): the client's over the page's