Skip to content

FoliageConceal beta ​

Interface of @v12-engine/engine

ts
export interface FoliageConceal extends Pick<ConcealmentOptions, 'reach' | 'hides' | 'seenBy' | 'rustle' | 'rustleEvery'>

How a layer of grass hides who stands in it (FoliageLayerOptions.conceal): what ConcealmentOptions says of it, the layer aside, and how tall a unit stands

Members ​

heightOf ​

ts
heightOf?: (world: World, entity: Entity) => number;

How tall a unit stands, in cells, for the styles that do not hide what is taller than they are (FoliageStyleDef.concealsTaller): twice its type's radius when left out