From c9297a82291882e4043ae5e0de2e631940e96b52 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 23 May 2022 19:08:02 +0200 Subject: feat: add incrementing generation --- src/game/game.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/game.hpp') diff --git a/src/game/game.hpp b/src/game/game.hpp index 955269c..75fb165 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -33,7 +33,12 @@ private: std::shared_ptr _status_manager; std::shared_ptr _user_input_observer; - std::chrono::system_clock::time_point _last_update_time; + using TimePoint = std::chrono::system_clock::time_point; + + TimePoint _last_update_time; + TimePoint _last_gen_update_time; + + int _gen_update_speed_millis; void _move_cursor(const Vector2 &direction) noexcept; }; -- cgit v1.2.3-18-g5258