diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-12 19:23:25 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-12 19:23:25 +0100 |
commit | cd5f6b542f9cb447e3a9f500713c556a3d034bf3 (patch) | |
tree | 1d3372f30305e9f7a567b220a9b51464ba8ba272 /src/crepe/system/AnimatorSystem.cpp | |
parent | ed90fde01c38b878645bb68d3aa7353349f3b300 (diff) | |
parent | fd403d038b017ec8976023471073329896035e36 (diff) |
merge master
Diffstat (limited to 'src/crepe/system/AnimatorSystem.cpp')
-rw-r--r-- | src/crepe/system/AnimatorSystem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/system/AnimatorSystem.cpp b/src/crepe/system/AnimatorSystem.cpp index 02647f1..ad4eaa8 100644 --- a/src/crepe/system/AnimatorSystem.cpp +++ b/src/crepe/system/AnimatorSystem.cpp @@ -1,6 +1,6 @@ #include "../api/Animator.h" #include "../manager/ComponentManager.h" -#include "api/LoopTimer.h" +#include "../manager/LoopTimerManager.h" #include "AnimatorSystem.h" @@ -8,10 +8,10 @@ using namespace crepe; void AnimatorSystem::frame_update() { ComponentManager & mgr = this->mediator.component_manager; - LoopTimer & timer = this->mediator.timer; + LoopTimerManager & timer = this->mediator.loop_timer; RefVector<Animator> animations = mgr.get_components_by_type<Animator>(); - double elapsed_time = timer.get_current_time(); + unsigned long long elapsed_time = timer.get_elapsed_time().count(); for (Animator & a : animations) { if (!a.active) continue; |