defineSystem
defineSystem<
P>(params,fn,options?):SystemDef
Defined in: ecs/system.ts:221
Declare a system: what it reads and writes, and the function to run.
Ordering declared here travels with the definition, so it applies wherever the system is registered — including the top-level addSystem, which takes no options of its own. Edges given again at the registration site (or on the enclosing SystemSet) are added to these, not replaced.
Type Parameters
Section titled “Type Parameters”P extends readonly SystemParam[]
Parameters
Section titled “Parameters”params
Section titled “params”[...P[]]
(…args) => void | Promise<void>