Skip to content

DataCellLayer beta ​

Interface of @v12-engine/engine

ts
export interface DataCellLayer

What a data.json (GameData.cellLayers, every map) or a map's definitions (GameMap.definitions, that map alone) says of one of the game's layers of cells: its values, by their number, each over the code's (DataCellLayerValue), or false to take one of the game's out. What the editor writes of a style made or changed there: { "grass": { "values": { "3": { "name": "Dry field", "foliage": { "flammable": 1 } } } } }

Members ​

values ​

ts
values?: Record<number, DataCellLayerValue | false>;

The layer's values, by number (1 to 255): each over the game's of that number, a new one, or false for none