MapBushes beta
Interface of @v12-engine/client
export interface MapBushes extends FoliagePartsHow the bushes over one of the game's layers of cells look, as data: each field over what the game says (its view's foliage look, with its cellLayers.json over it); what is left out is the game's. The client's FoliageLook with nothing in it that is code: its groups (FoliageParts: shape, colors, wind and the rest) as the look has them, and each style's look over the layer's (styles)
Members
color
color?: [number, number, number] | [number, number, number, number];The colour at the foot of the blades, 0 to 1 each: of the grass, not of models. A fourth, how much of it is seen (FoliageColor)
density
density?: number;Tufts to a cell, or models to a cell (a part of one is a chance of one)
far
far?: {
from: number;
to: number;
keep?: number;
};Thinned out with the distance: fewer past from cells from the camera, down to the part keep at to
height
height?: number;How tall it stands, in cells: a model is sized to it where it is given
leaves
leaves?: string | false;An effect played where one steps into it, by name (the view's fx); false for none
models
models?: MapBushModel[];Models drawn in place of the tall grass, one picked for each by weight: tall grass when empty
on
on?: FoliageOnTiles;Grass grown from the ground's paint, on every cell of these tiles nothing of the layer is painted on (FoliageOnTiles): the layer's alone, never a style's
seeThrough
seeThrough?: boolean;Whether it is see-through around the player's own units in it
shake
shake?: MapBushShake | false;How it is shaken by who goes into it; false for not at all
size
size?: [number, number];How much each differs in size, the smallest and the biggest of 1
sound
sound?: string | false;The sound of moving through it, by name; false for none
styles
styles?: Record<number, MapBushStyle | false>;The look of each style of the layer, by the value of its cells (1 to 255): over the layer's own, field by field, or false for a style nothing is drawn of. What the editor writes of a patch given its own settings
sway
sway?: number;How much it sways in the wind, 0 for none
tilt
tilt?: number;How far a model leans each its own way, at most, in degrees
tip
tip?: [number, number, number] | [number, number, number, number];The colour at the tips of the blades, 0 to 1 each. A fourth, how much of them is seen
volume
volume?: number;How loud it is, 1 the loudest
walked
walked?: MapBushWalked | false;How it moves as it is walked through, and whether the grass stays down (MapBushWalked); false for not at all