foliageStyle beta
Function of @v12-engine/engine
ts
export declare function foliageStyle(game: {
cellLayers?: readonly CellLayerDef[];
packs?: readonly GamePack[];
}, layer: string, value: number): FoliageStyleDef | undefined;What a style of a layer is to the rules, by its value: what the value says (CellLayerValue.foliage, the game's code with its data and the map's over it) over the layer's own (FoliageLayerOptions.style). None for 0, which is no grass. A value the layer does not list is the layer's own style