Skip to content

MapCheckContext beta ​

Interface of @v12-engine/engine

ts
export interface MapCheckContext

What a check of a map is handed besides the map and the game: the terrain the map makes (made once, as the first check asks), and whether a point is on the map

Members ​

onMap ​

ts
onMap(point: Vec2): boolean;

Whether a point is on the map: within its width and depth, edges included

terrain ​

ts
readonly terrain: Terrain;

The terrain the map makes