Skip to content

presetFoliageStyles beta ​

Variable of @v12-engine/engine

ts
presetFoliageStyles: Readonly<Record<'meadow' | 'tallGrass' | 'dryGrass' | 'reeds' | 'wheat' | 'snowGrass' | 'thicket' | 'hedge', FoliageStyleDef>>

Ready-made kinds of grass to the rules (FoliageStyleDef), by the names of the client's looks (presetFoliage): values: [{ value: 1, name: 'Meadow', foliage: presetFoliageStyles.meadow }]. A meadow burns and grows back, tall grass, reeds, wheat, a thicket and a hedge hide who stands in them; dry grass burns hottest, snow grass hardly; a thicket slows those on foot, reeds a little; nothing walks through a hedge (walkable: false). A game changes what it wants: { ...presetFoliageStyles.wheat, trample: 'none' }