voxolith

GenerateSpec

One entity to generate. Everything in it is posted to a worker, so it must be structured- cloneable (plain data, no functions).

Defined in: engine/src/worker/pool.ts:61

Properties

PropertyTypeDescriptionDefined in
ctx?GenerateContextPassed to the generator, e.g. { voxelsPerMetre: 100 }.engine/src/worker/pool.ts:71
entityId?stringSets the produced entity's id.engine/src/worker/pool.ts:69
generatorstringEntityGenerator.id, registered in the worker (e.g. "voxolith/tree.broadleaf").engine/src/worker/pool.ts:63
paramsunknownThe generator's parameters, in its units (10 voxels per metre).engine/src/worker/pool.ts:65
seednumberSeeds the generator's rng; the same spec always gives the same entity.engine/src/worker/pool.ts:67

On this page