Skip to content

EditorChecks beta ​

Class of @v12-engine/editor

ts
export declare class EditorChecks

What is wrong with the map: the checks of the engine and the game, and the files it names that are not there.

A part of the editor, as it gives it (editor.checks)

Members ​

constructor ​

ts
constructor(host: ChecksHost);

Constructs a new instance of the EditorChecks class

checked ​

ts
checked?: {
        version: number;
        at: number;
        problems: MapProblem[];
    };

What is wrong with the map, as it was when it was last checked

cinematics ​

ts
readonly cinematics: CinematicCatalog;

The game's cinematics, read and kept for what is checked of them

dispose ​

ts
dispose(): void;

Disposes of the cinematics read for the checks

problems ​

ts
get problems(): MapProblem[];

The problems found in the open map, worked out again when the map changed, at most twice a second

showProblem ​

ts
showProblem(problem: MapProblem): void;

Shows what a problem is about: selects it (an object, a camp, a region, a point, a path, a doodad) and looks at it; a player's is looked at, where they start

silence ​

ts
silence(rule: string, silenced?: boolean): void;

Silences a rule of the checks for this map (GameMap.silence), or speaks it again: a step of the history

start ​

ts
start(): void;

As the editor opens: what models and sounds there are files of, to say which the map names and are not there