Skip to content

dressGround

dressGround(world, share): () => void

Defined in: packages/engine/src/gameplay/world/actions.ts:89

Stands the map’s scatter on every ground there is, and on every ground spawned until the returned function is called, and bakes what of it blocks a walker from the scatter shapes table. What blocks always stands in full; share, 0 to 1, thins only what decorates. So a room and every device on it stand the same rocks and trees, whatever each draws of the grass. Apart from the spawn because a page knows its share only once it knows the GPU, and either can come first: React runs a child’s effect before its parent’s, and the startup that spawns the ground is the parent’s. The returned function also takes the bakes off. Await loadRapier first, which loads the shapes table with the wasm.

Parameter Type
world World
share number

() => void