|
hx3d
1
2D/3D Simple Game Framework
|
Entity processing systems. More...
#include <system.hpp>
Public Member Functions | |
| template<class... Types> | |
| void | setRequiredFamily () |
| Set the required component types for the system. | |
| virtual void | process (const Ptr< Entity > &entity, const float delta)=0 |
| Process an entity. Does not check if the entity can be processed. More... | |
| bool | canProcess (const unsigned int bits) |
| Check if an entity can be processed (using the required family). More... | |
| Engine * | getEngine () |
| Get the engine instance. More... | |
Entity processing systems.
Matches entities with family filtering.
Definition at line 39 of file system.hpp.
| bool hx3d::ecs::System::canProcess | ( | const unsigned int | bits | ) |
Check if an entity can be processed (using the required family).
| bits | Entity bits |
Definition at line 28 of file system.cpp.
| Engine * hx3d::ecs::System::getEngine | ( | ) |
|
pure virtual |
Process an entity. Does not check if the entity can be processed.
| entity | Entity (Ptr) |
| delta | Delta time |
1.8.11