FoliageOnTiles beta
Interface of @v12-engine/client
export interface FoliageOnTilesGrass grown from the ground's paint (FoliageLook.on): on every cell whose tile is one of tiles, with nothing painted on the layer there. Kept in step as the ground is painted, in the editor and in play; a cell painted with the layer by hand is drawn as it is painted (a style drawn as nothing, false, keeps it bare). A cell's tile is the one painted on it (Terrain.tiles, as the rules and placing.tiles read it), not the blend the ground is drawn with at its corners. Of the screen alone: the rules see no cells of it, so it hides nobody and never burns (growOnTiles paints them into the layer, for a game that wants the rules to see them)
Members
density
density?: number;Tufts a cell where style is left out: 1 when left out, a short sward that costs little over a whole map
height
height?: number;How tall it stands where style is left out, in world units: 0.7 of the layer's when left out
style
style?: number;The style it is drawn as, a value of the layer (1 to 255): its look, density and all. When left out, a style of its own (FOLIAGE_TILE_STYLE, 255): the layer's look at density and a shorter height, under what the look's styles[255] says
tiles
tiles: readonly string[];The tiles it grows on, by id: ['grass', 'darkGrass']