Skip to content

MapBushes beta ​

Interface of @v12-engine/client

ts
export interface MapBushes extends FoliageParts

How 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 ​

ts
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 ​

ts
density?: number;

Tufts to a cell, or models to a cell (a part of one is a chance of one)

far ​

ts
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 ​

ts
height?: number;

How tall it stands, in cells: a model is sized to it where it is given

leaves ​

ts
leaves?: string | false;

An effect played where one steps into it, by name (the view's fx); false for none

models ​

ts
models?: MapBushModel[];

Models drawn in place of the tall grass, one picked for each by weight: tall grass when empty

on ​

ts
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 ​

ts
seeThrough?: boolean;

Whether it is see-through around the player's own units in it

shake ​

ts
shake?: MapBushShake | false;

How it is shaken by who goes into it; false for not at all

size ​

ts
size?: [number, number];

How much each differs in size, the smallest and the biggest of 1

sound ​

ts
sound?: string | false;

The sound of moving through it, by name; false for none

styles ​

ts
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 ​

ts
sway?: number;

How much it sways in the wind, 0 for none

tilt ​

ts
tilt?: number;

How far a model leans each its own way, at most, in degrees

tip ​

ts
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 ​

ts
volume?: number;

How loud it is, 1 the loudest

walked ​

ts
walked?: MapBushWalked | false;

How it moves as it is walked through, and whether the grass stays down (MapBushWalked); false for not at all