ecs::World
Last updated
Last updated
#include <World.hpp>
class ecs::World;
World class is used to contain all the components that are relevant to work together
inline World()
Default constructor
inline void runSystems()
Used to operate all the systems in the world
inline void addSystem(
const std::function< void(World &)> & system
)
Parameters:
system The system you want to add in the world in a constant manner
USed to add a new system into the world
inline void pushEvent(
const ecs::Event event
)
Parameters:
event The event you want to push in the world
Used to add a new event into the world
inline const ecs::Event getEvent() const
Return: The first event of the private stack if it exists, ecs::Event::EventType::Null otherwise
Used to get the first event of the private stack _events
inline const ecs::Event popEvent()
Return: The event you just popped out of the stack if it exists, ecs::Event::EventType::Null otherwise
Used to pop the first event of the private stack _events
Registry registry;
The registry of the world, refers to the Registry documentation to learn more about it
Updated on 2022-11-13 at 17:21:37 +0100