Skip to content

FoliageParts beta ​

Interface of @v12-engine/client

ts
export interface FoliageParts

What a look of grass and bushes says that is plain data and the same for the code's look and a file's (FoliageLook, MapBushes): what is drawn, its shape, sizes, turning, colours, where it grows, how it is lit, drawn far off, moves in the wind, looks ruined and burning

Members ​

colors ​

ts
colors?: FoliageColors;

The colours (FoliageColors)

draw ​

ts
draw?: 'grass' | 'models';

What is drawn: tall grass made in code (grass), or the game's own models (models). Models where models names any, else grass, when left out

fire ​

ts
fire?: FoliageFireLook | false;

How it burns on the screen (FoliageFireLook); false for no flames, smoke, light or sound

levels ​

ts
levels?: FoliageLevels;

How it is drawn by its distance from the camera (FoliageLevels)

light ​

ts
light?: FoliageLight;

How it is lit (FoliageLight)

noise ​

ts
noise?: number;

How far across the patches of sizes.noise, colors.patches and placing.clump are where they do not say, in cells: 8 when left out

placing ​

ts
placing?: FoliagePlacing;

Where it grows in its cells (FoliagePlacing), over density

rotation ​

ts
rotation?: FoliageRotation;

Which way each is turned and leans (FoliageRotation)

ruined ​

ts
ruined?: FoliageRuined;

How it looks cut, crushed and burnt (FoliageRuined)

scatter ​

ts
scatter?: readonly FoliageScatter[];

Flowers and small plants mixed into the grass (FoliageScatter), each kind its own: none when left out. Of the grass, not of models

seed ​

ts
seed?: number;

What its layout is drawn from: the same seed lays the same field, on every screen. 0 when left out

shadow ​

ts
shadow?: boolean | 'near';

Whether models cast shadows: yes, no, or only near the camera (near: their nearest level). Grass never does. No when left out, as bushes never did

shape ​

ts
shape?: FoliageShape;

The shape of a tuft of grass (FoliageShape): the tuft the grass always was when left out

sizes ​

ts
sizes?: FoliageSizes;

How big each is (FoliageSizes), over height

wind ​

ts
wind?: FoliageWind;

How it moves in the wind (FoliageWind)