Skip to content

checkMap ​

Function of @v12-engine/engine

ts
export declare function checkMap(map: GameMap, registry: Registry, more?: readonly MapRule[]): MapProblem[];

What is wrong with a map, before it is played: what the game does not have, names used twice or named and not there, what stands off the map or in deep water, starts that cannot reach each other on foot, mines nobody can walk to, regions outside the map (MAP_RULES); then the checks given (more: the client's of what the map looks like, a game view's own, as the editor runs them); then the game's own (MapEditorDef.check). Errors keep it from being played; the rest are warnings. Runs without the editor, for a test that goes over every map of a project