Skip to content

GameStyleFiles beta ​

Interface of @v12-engine/editor

ts
export interface GameStyleFiles

The game's files a style is kept in for every map, as the editor writes them: what its data.json says of a layer's values (GameData.cellLayers) and its cellLayers.json's entry of the layer. Each written at once; the editor makes every write a step of the map's history

Members ​

data ​

ts
data(layer: string): DataCellLayer | undefined;

What data.json says of the layer (DataCellLayer), as it is now

look ​

ts
look(layer: string): CellLayerFileEntry | false | undefined;

The layer's entry in cellLayers.json, as it is now

setData ​

ts
setData(layer: string, entry: DataCellLayer | undefined): void;

What data.json says of the layer, whole: nothing takes it out

setLook ​

ts
setLook(layer: string, entry: CellLayerFileEntry | false | undefined): void;

The layer's entry in cellLayers.json, whole: nothing takes it out