Skip to content

PreparedGame beta ​

Interface of @v12-engine/client

ts
export interface PreparedGame

A game ready to be shown: the player's seat at it, and where their view starts

Members ​

debug ​

ts
debug: boolean;

Whether the player may use the debug tools (GameSource.debug)

local ​

ts
local?: LocalSession;

The seat when the game is played in the page: what the debug tools reach through

lookAt ​

ts
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 ​

ts
pack?: MapPack;

The files the map brings with it: the source's, or the map being edited's

player ​

ts
player: PlayerId;

The player the client plays as, whose seat the view and the commands are

session ​

ts
session: GameSession;

The session the game runs on: a local one in the page or a remote one on a server

startView ​

ts
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 ​

ts
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