hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::ecs::System Class Referenceabstract

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...
 
EnginegetEngine ()
 Get the engine instance. More...
 

Detailed Description

Entity processing systems.

Matches entities with family filtering.

Definition at line 39 of file system.hpp.

Member Function Documentation

bool hx3d::ecs::System::canProcess ( const unsigned int  bits)

Check if an entity can be processed (using the required family).

Parameters
bitsEntity bits
Returns
True/False

Definition at line 28 of file system.cpp.

Engine * hx3d::ecs::System::getEngine ( )

Get the engine instance.

Returns
Engine instance

Definition at line 32 of file system.cpp.

virtual void hx3d::ecs::System::process ( const Ptr< Entity > &  entity,
const float  delta 
)
pure virtual

Process an entity. Does not check if the entity can be processed.

See also
canProcess
Parameters
entityEntity (Ptr)
deltaDelta time

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