MapBeingEdited beta
Interface of @v12-engine/client
export interface MapBeingEditedA map handed over as it is in the editor, to be played without saving it: the map, the files it brings, who plays, where the view starts and whether everything is seen. The editor's Play here hands it to the scene that plays its maps (SceneArgs.editing)
Members
data
data?: GameData;What the editor's Data panel changed of the game's data, kept or not (editor.data.asData()): the game played is made of the game with it over its code, as a data.json is, so that a copy made there is there as the map's units are put down
lookAt
lookAt?: Vec2;Where the view looks when the map is tested
map
map: GameMap;The map being edited, as its file has it
pack
pack?: MapPack;The files the map brings with it (a ground made of a picture); none for a map without
player
player?: PlayerId;The player the map is played as when the editor tests it
reveal
reveal?: boolean;Whether the whole map is shown without fog of war when it is tested