|
Aegis2D
Modular C++26 2D game engine for networked games
|
Game logic run on the registry once per tick (movement, collisions, spawns...). More...
#include <aegis2d/ecs/system.hpp>
Public Member Functions | |
| ISystem ()=default | |
| ISystem (const ISystem &)=delete | |
| ISystem & | operator= (const ISystem &)=delete |
| ISystem (ISystem &&)=delete | |
| ISystem & | operator= (ISystem &&)=delete |
| virtual | ~ISystem () |
| Releases the system's own state. | |
| virtual void | update (Registry ®istry, const Tick &tick)=0 |
| Runs the system for one tick. | |
Game logic run on the registry once per tick (movement, collisions, spawns...).
A system owns no entity: it reads and writes components through the registry, usually with views. It may keep its own state between ticks (a spawn timer, a random generator), so client and server each register the systems they need in their Scheduler. Small stateless systems can be plain functions instead (FunctionSystem).
|
default |
|
delete |
|
delete |
|
virtual |
Releases the system's own state.
Runs the system for one tick.
| registry | World the system works on. |
| tick | Step duration and tick number. |
Implemented in aegis2d::ecs::FunctionSystem.