|
viotecs 1.1.0
|
#include <system.hpp>
Public Types | |
| using | Dependencies = std::tuple< T... > |
Public Member Functions | |
| virtual void | run (std::vector< EntityId > e) const |
System type.
This type is used to identify systems in the game world. Systems are functions that process game objects and are called at any tick by the World.
Systems can query an entity via It's components specified in the template arguments. The system will be called each tick with a list of entities that have all the components specified.
Example of creating a system:
If no components are needed, use system<none>.
Definition at line 37 of file system.hpp.
| using viotecs::System< T >::Dependencies = std::tuple<T...> |
Definition at line 40 of file system.hpp.
|
inlinevirtual |
Definition at line 41 of file system.hpp.