aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/AnimatorSystem.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-12 19:23:25 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-12 19:23:25 +0100
commitcd5f6b542f9cb447e3a9f500713c556a3d034bf3 (patch)
tree1d3372f30305e9f7a567b220a9b51464ba8ba272 /src/crepe/system/AnimatorSystem.cpp
parented90fde01c38b878645bb68d3aa7353349f3b300 (diff)
parentfd403d038b017ec8976023471073329896035e36 (diff)
merge master
Diffstat (limited to 'src/crepe/system/AnimatorSystem.cpp')
-rw-r--r--src/crepe/system/AnimatorSystem.cpp6
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;