Skip to content

MapProblem beta ​

Interface of @v12-engine/engine

ts
export interface MapProblem

Something wrong with a map, as a game sees it: said before the map is played

Members ​

about ​

ts
about?: MapTarget;

What it is about: a click on it in the editor selects it

at ​

ts
at?: Vec2;

Where on the map it is, for the editor to show

error ​

ts
error?: boolean;

It cannot be played like this. A warning when left out: it can, but probably should not

message ​

ts
message: string;

What is wrong, in words, as the editor and the lobby show it

reveal ​

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

ts
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