MapCamp beta
Interface of @v12-engine/engine
ts
export interface MapCampCreeps that guard a spot
Members
data
ts
data?: Record<string, unknown>;What the game's own fields for camps were set to, see MapObject.data: the mapCamp hook hands it to the game
id
ts
id: number;The map's id for the camp, used by the editor
name
ts
name?: string;A name of its own, for the rules to find it by (campNamed(world, 'ogres')), see MapObject.name
respawn
ts
respawn?: number;Seconds after it is cleared that it comes back (see Camp.respawn). The game's rule when left out
units
ts
units: string[];Unit types, the first one stands in the middle
x
ts
x: number;Where the camp stands on the map's x axis, in cells
z
ts
z: number;Where the camp stands on the map's z axis, in cells