viotecs 1.0
|
System type. More...
#include <system.hpp>
Public Types | |
using | dependencies = std::tuple<T...> |
Public Member Functions | |
virtual void | run (std::vector< entity_t > 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 56 of file system.hpp.
using viotecs::system< T >::dependencies = std::tuple<T...> |
Definition at line 58 of file system.hpp.
|
inlinevirtual |
Definition at line 59 of file system.hpp.