GenerateRequest
The pool's request to a worker: one entity to generate.
Defined in: engine/src/worker/protocol.ts:11
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
cache? | boolean | false: neither read nor write the worker's model cache for this request. | engine/src/worker/protocol.ts:26 |
ctx? | GenerateContext | Passed to the generator (a finer voxelsPerMetre, ...). | engine/src/worker/protocol.ts:24 |
entityId? | string | Optional id for the produced entity. | engine/src/worker/protocol.ts:22 |
generator | string | EntityGenerator.id, looked up in the worker's own registry. | engine/src/worker/protocol.ts:16 |
id | number | Correlates a reply with its request. | engine/src/worker/protocol.ts:14 |
kind | "generate" | - | engine/src/worker/protocol.ts:12 |
params | unknown | The generator's parameters, as given to GeneratorPool.generate. | engine/src/worker/protocol.ts:18 |
seed | number | Seeds the injected rng, so a request is reproducible. | engine/src/worker/protocol.ts:20 |