Systems are the behaviour/work units in Wima’s runtime. A system is the code that runs against the World, usually through a schedule, to read current state and make the next state happen.
Use systems for runtime behavior such as movement, gravity, tweening, animation playback, transform propagation, rendering coordination, input handling, audio updates, and scene/runtime glue.
An important aspect of system is where that function lands: a system becomes part of the runtime only after the app stages it onto a schedule and the scheduler decides when to run it. That is why systems sit at the center of Schedules, System groups, and Plugins.
What Systems Do
- Read entity state through queries.
- Read and write shared state through resources.
- Update components on matching entities.
- Defer world changes through commands when mutation should happen at the end of a schedule.
Systems In The Runtime Loop
Systems do not run by themselves. The App stages them onto schedules, which order and execute them, and CorePlugin with its package defines the standard AppSchedule.Startup and AppSchedule.Update flow that most engine packages plug into.
In practice, feature plugins register systems and resources together so the runtime can install the whole behavior block in one place. That is how features such as time, event, gravity, tween, animation, transform, input, audio, and scene tie their ECS logic into the app loop.
For example, a plugin can place a system into the update flow and a specific phase of that flow:
app.registerSystem({
schedule: AppSchedule.Update,
systemGroup: CoreSystems.Main,
system: updateMovement
})
That registration says more than “run this later”. It says “run this with the rest of the frame’s gameplay systems, after startup has prepared the world and before end-of-frame cleanup runs.” The schedule and group give the system its timing, and the system itself stays focused on behavior.
Working Pattern
Systems are strongest when they stay narrow. A movement system should move entities, not also wire input, create assets, or build the app. Those other concerns usually belong in a plugin that registers the system plus the supporting resources and hooks.
When a system does need to stage changes, it should do so intentionally through deferred commands so the rest of the schedule can finish against a stable world state. That pattern is what keeps behavior predictable when many systems run in sequence.
