WorkerGame beta
Interface of @v12-engine/engine
ts
export interface WorkerGameWhat the page says a game in a worker is made from: plain data, which is all that crosses
Members
args
ts
args?: unknown;Anything else the worker's own code is to know (start, world): plain data
debug
ts
debug?: boolean;Whether the player may use the debug tools, and sees everything from the start
from
ts
from?: WorldSave;A save to continue the game from, in place of a map
map
ts
map?: GameMap;A map of the game: the world is made from it. Or a save to go on from (from); or neither, where the worker makes its world in code
player
ts
player?: PlayerId;Who the player at the screen is: as the worker says (ServeWorldOptions.player), then the map's first with a start, when left out
reveal
ts
reveal?: boolean;Whether the player sees the whole map from the start
seed
ts
seed?: number;The seed the world's random generator starts with