FoliageParts beta
Interface of @v12-engine/client
export interface FoliagePartsWhat 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
colors?: FoliageColors;The colours (FoliageColors)
draw
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
fire?: FoliageFireLook | false;How it burns on the screen (FoliageFireLook); false for no flames, smoke, light or sound
levels
levels?: FoliageLevels;How it is drawn by its distance from the camera (FoliageLevels)
light
light?: FoliageLight;How it is lit (FoliageLight)
noise
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
placing?: FoliagePlacing;Where it grows in its cells (FoliagePlacing), over density
rotation
rotation?: FoliageRotation;Which way each is turned and leans (FoliageRotation)
ruined
ruined?: FoliageRuined;How it looks cut, crushed and burnt (FoliageRuined)
scatter
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
seed?: number;What its layout is drawn from: the same seed lays the same field, on every screen. 0 when left out
shadow
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
shape?: FoliageShape;The shape of a tuft of grass (FoliageShape): the tuft the grass always was when left out
sizes
sizes?: FoliageSizes;How big each is (FoliageSizes), over height
wind
wind?: FoliageWind;How it moves in the wind (FoliageWind)