Entities · interface
SystemDefinition
Explained in Entities.
interface SystemDefinitionimport type { SystemDefinition } from '@driftengine/entities';Properties
| Name | Type | Description |
|---|---|---|
namereadonly | string | |
readsreadonlyoptional | readonly ComponentType[] | |
writesreadonlyoptional | readonly ComponentType[] | |
everyTicksreadonlyoptional | number | Run once every this many fixed steps. Absent means every step.MoreA stride and never a rate in seconds. A rate in wall-clock time leaves the determinism contract on its first dropped frame: two runs of the same recording would run the system a different number of times. A tick count is the same in every replay of the same input. |
afterreadonlyoptional | readonly string[] | Systems this one must run after, by name. A cycle here is refused at build. |
Methods
run
run(view: SystemView): void| Parameter | Type | Description |
|---|---|---|
view | SystemView |