API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeSystem
A per-frame unit of simulation or rendering, owned by a SystemRegistry (`app.systems` or `scene.systems`). A system is a class instance or plain object that implements at least one of SystemMethods.fixedUpdate, SystemMethods.update, or SystemMethods.draw - it participates only in the phases it defines. ```ts app.systems.add({ update(delta: Seconds) { simulation.update(delta); }, draw(context: RenderingContext) { context.render(stage); }, }); ``` `destroy()` is optional: the registry calls it, if present, exactly once when the system is still registered at registry destruction.
import { System } from '@codexo/exojs'A per-frame unit of simulation or rendering, owned by a SystemRegistry (`app.systems` or `scene.systems`). A system is a class instance or plain object that implements at least one of SystemMethods.fixedUpdate, SystemMethods.update, or SystemMethods.draw - it participates only in the phases it defines.
```ts app.systems.add({ update(delta: Seconds) { simulation.update(delta); }, draw(context: RenderingContext) { context.render(stage); }, }); ```
`destroy()` is optional: the registry calls it, if present, exactly once when the system is still registered at registry destruction.
RequireAtLeastOne<SystemMethodsThe five scheduler phases a System may participate in, one per dispatch stage of the Application frame loop: pre-simulation sync, fixed-timestep simulation, va…> & Partial<DestroyableStructural interface for anything that holds resources requiring explicit release. ExoJS value types tend to implement this even when no external resources are…> & { order?: number }