MapProblem beta
Interface of @v12-engine/engine
export interface MapProblemSomething wrong with a map, as a game sees it: said before the map is played
Members
about
about?: MapTarget;What it is about: a click on it in the editor selects it
at
at?: Vec2;Where on the map it is, for the editor to show
error
error?: boolean;It cannot be played like this. A warning when left out: it can, but probably should not
message
message: string;What is wrong, in words, as the editor and the lobby show it
reveal
reveal?: {
panel: string;
entry: string;
};Where it is shown when it is about something of a panel's rather than the map's (a clip of a cinematic): a click on it opens that panel at that entry (editor.panels.reveal(panel, entry), as the search of everything does)
rule
rule?: string;The rule it breaks, by id (off-map, deep-water…, or a game's own): what silences it, for a map (GameMap.silence) or a game (MapEditorDef.silence). A game's own check that says none is game