Skip to content

FoliageStylesHost beta ​

Interface of @v12-engine/editor

ts
export interface FoliageStylesHost

What the styles reach of the editor

Members ​

cellLayers ​

ts
readonly cellLayers: readonly CellLayerDef[];

The game's layers of cells, as its rules have them (its code, with its data.json over it as loaded)

changed ​

ts
changed(): void;

After the map changed: drawn as it is now, its file unsaved

codeLook ​

ts
codeLook(layer: string): FoliageLook | undefined;

The look the game's code gives a layer, under its cellLayers.json: none where its view draws no grass there

doc ​

ts
readonly doc: MapEditor;

The map's editor: the cells, the definitions and the look are changed through it

gameFiles ​

ts
readonly gameFiles?: GameStyleFiles;

The game's files: none where there is no project to write them in, and every map is refused

packs ​

ts
readonly packs?: readonly GamePack[];

The game's packs: the foliage pack's base style of a layer (FoliageLayerOptions.style) is under every style's rules

selected ​

ts
selected?(): void;

After the selection changed: drawn as it is now