MapRegion beta
Interface of @v12-engine/engine
export interface MapRegionA named part of the map, which becomes an area of the world made from it (AreaDef): the rules hear who walks in and out (enteredArea, leftArea) and ask who is in it (world.areas), by its name
Members
cinematic
cinematic?: MapRegionCinematic;A cinematic the region plays (ED4): for everyone, once, the first time a unit of a player walks in, unless the game plays it its own way (play: 'code': the region says which, world.map.regions, and the game's rules play it)
color
color?: [number, number, number];What it is drawn in, in the editor, to tell it from the others. The editor picks one when left out
data
data?: Record<string, unknown>;What the game's own fields for regions were set to, see MapObject.data: the mapRegion hook hands it to the game
id
id: number;The editor's, to tell regions apart while one is renamed. The world knows it by its name
name
name: string;What the rules know it by. No two things on a map have the same, whatever they are
shape
shape: AreaShape;The shape of the region: a circle or a rectangle (AreaShape)