CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::World Class Reference

#include <CeresEngine/Entity/World.hpp>

Public Member Functions

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo getClassInfo () noexcept
 
virtual ::CeresEngine::ClassInfo getClassInfo () const noexcept
 
 World ()=default
 Creates a new world.
 
 World (Scene &scene)
 Creates a new world for a scene.
 
virtual ~World ()=default
 
Vector< EntitygetEntities () const
 

Public Attributes

EntityEventManager events
 A manager that can be used to listen for events in this world.
 
EntityActionManager actions
 A manager that can be used to dispatch actions in this world.
 
EntityManager entities {*this, events, actions}
 The world entity manager.
 
SystemManager systems {entities}
 The world system manager.
 
Scene *const scene = nullptr
 The scene that owns this world.
 

Constructor & Destructor Documentation

◆ World() [1/2]

CeresEngine::World::World ( )
explicitdefault

Creates a new world.

◆ World() [2/2]

CeresEngine::World::World ( Scene scene)
inlineexplicit

Creates a new world for a scene.

◆ ~World()

virtual CeresEngine::World::~World ( )
virtualdefault

Member Function Documentation

◆ getClassInfo() [1/2]

virtual ::CeresEngine::ClassInfo CeresEngine::World::getClassInfo ( ) const
virtualnoexcept

◆ getClassInfo() [2/2]

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo CeresEngine::World::getClassInfo ( )
virtualnoexcept

◆ getEntities()

Vector< Entity > CeresEngine::World::getEntities ( ) const

Member Data Documentation

◆ actions

EntityActionManager CeresEngine::World::actions

A manager that can be used to dispatch actions in this world.

◆ entities

EntityManager CeresEngine::World::entities {*this, events, actions}

The world entity manager.

Contains and manages all entities in the world.

◆ events

EntityEventManager CeresEngine::World::events

A manager that can be used to listen for events in this world.

◆ scene

Scene* const CeresEngine::World::scene = nullptr

The scene that owns this world.

Can be null if the world is not owned by a scene.

◆ systems

SystemManager CeresEngine::World::systems {entities}

The world system manager.

Contains and manages all systems in the world.


The documentation for this class was generated from the following file: