A base system of WAL.
More...
#include <System.hpp>
|
| | ~System () override=default |
| | A virtual, default, destructor. More...
|
| |
| | System (System &&) noexcept=default |
| | A system can be moved. More...
|
| |
| View< Dependencies... > & | getView () override |
| | Get a view of all entities containing every dependencies of this system. More...
|
| |
| virtual void | onUpdate (ViewEntity< Dependencies... > &entity, std::chrono::nanoseconds dtime) |
| | Update the corresponding component of the given entity. More...
|
| |
| virtual void | onFixedUpdate (ViewEntity< Dependencies... > &entity) |
| | An alternative of onUpdate that is called every 8ms (120 times per seconds). If the system slow down, it will try to catch up. More...
|
| |
| virtual void | onSelfUpdate (std::chrono::nanoseconds dtime) |
| | A method called after all entities that this system manage has been updated. More...
|
| |
| void | update (std::chrono::nanoseconds dtime) final |
| | Update the whole system (every entities that this system is responsible can be updated. More...
|
| |
| void | fixedUpdate () final |
| | An alternative of update that is called every 8ms (120 times per seconds). If the system slow down, it will try to catch up. More...
|
| |
| virtual | ~ISystem ()=default |
| | A virtual default destructor. More...
|
| |
template<typename ... Dependencies>
class WAL::System< Dependencies >
A base system of WAL.
- Template Parameters
-
| Dependencies | The list of dependencies this system has. |
◆ ~System()
template<typename ... Dependencies>
A virtual, default, destructor.
◆ System() [1/3]
template<typename ... Dependencies>
◆ System() [2/3]
template<typename ... Dependencies>
A system can't be instantiated, it should be derived.
◆ System() [3/3]
template<typename ... Dependencies>
A system can't be instantiated, it should be derived.
◆ fixedUpdate()
template<typename ... Dependencies>
An alternative of update that is called every 8ms (120 times per seconds). If the system slow down, it will try to catch up.
Implements WAL::ISystem.
◆ getView()
template<typename ... Dependencies>
Get a view of all entities containing every dependencies of this system.
Implements WAL::ISystem.
◆ onFixedUpdate()
template<typename ... Dependencies>
An alternative of onUpdate that is called every 8ms (120 times per seconds). If the system slow down, it will try to catch up.
- Parameters
-
| entity | The entity to update. |
◆ onSelfUpdate()
template<typename ... Dependencies>
| virtual void WAL::System< Dependencies >::onSelfUpdate |
( |
std::chrono::nanoseconds |
dtime | ) |
|
|
inlinevirtual |
◆ onUpdate()
template<typename ... Dependencies>
| virtual void WAL::System< Dependencies >::onUpdate |
( |
ViewEntity< Dependencies... > & |
entity, |
|
|
std::chrono::nanoseconds |
dtime |
|
) |
| |
|
inlinevirtual |
Update the corresponding component of the given entity.
- Parameters
-
| entity | The entity to update. |
| dtime | The delta time. |
◆ operator=()
template<typename ... Dependencies>
A system can't be instantiated, it should be derived.
◆ update()
template<typename ... Dependencies>
| void WAL::System< Dependencies >::update |
( |
std::chrono::nanoseconds |
dtime | ) |
|
|
inlinefinalvirtual |
Update the whole system (every entities that this system is responsible can be updated.
- Parameters
-
| dtime | The delta time since the last call to this method. |
Implements WAL::ISystem.
◆ _wal
template<typename ... Dependencies>
The documentation for this class was generated from the following file: