Antkeeper
0.0.1
|
#include <metabolic-system.hpp>
Public Member Functions | |
metabolic_system (entity::registry ®istry) | |
virtual void | update (float t, float dt) |
Perform's a system's update() function. More... | |
constexpr void | set_time_scale (float scale) noexcept |
Sets the factor by which the timestep dt will be scaled. More... | |
![]() | |
updatable_system (entity::registry ®istry) | |
Creates an updatable system. More... | |
Additional Inherited Members | |
![]() | |
entity::registry & | registry |
Registry on which the system operate. More... | |
Definition at line 28 of file metabolic-system.hpp.
|
explicit |
Definition at line 25 of file metabolic-system.cpp.
|
inlineconstexprnoexcept |
Sets the factor by which the timestep dt
will be scaled.
scale | Factor by which to scale the timestep. |
Definition at line 40 of file metabolic-system.hpp.
|
virtual |
Perform's a system's update() function.
t | Total elapsed time, in seconds. |
dt | Delta time, in seconds. |
Implements updatable_system.
Definition at line 29 of file metabolic-system.cpp.