diff options
-rw-r--r-- | application/main.cpp | 2 | ||||
-rw-r--r-- | game/worldobject.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/application/main.cpp b/application/main.cpp index 6b22a68..c9caf74 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -107,7 +107,7 @@ public: while (isRunning) { processInputs(); const auto t_end = std::chrono::high_resolution_clock::now(); - const auto t_passed = std::chrono::duration_cast<WorldObject::TickDuration>(t_end - t_start); + const auto t_passed = std::chrono::duration_cast<TickDuration>(t_end - t_start); world.apply(&WorldObject::tick, t_passed); world.apply<CameraController>(&CameraController::updateCamera, &camera); diff --git a/game/worldobject.h b/game/worldobject.h index db69532..0340ac4 100644 --- a/game/worldobject.h +++ b/game/worldobject.h @@ -4,10 +4,10 @@ #include <chrono> #include <special_members.hpp> +using TickDuration = std::chrono::duration<float, std::chrono::seconds::period>; + class WorldObject { public: - using TickDuration = std::chrono::duration<float, std::chrono::seconds::period>; - WorldObject() = default; virtual ~WorldObject() = default; NO_COPY(WorldObject); |