From f9269a45b82f637173e30760e1f4febc7ccb2b3e Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 11 Feb 2023 00:54:15 +0100 Subject: Clock now tracks seconds since creation --- engine/include/kurator/engine/Clock.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engine/include') diff --git a/engine/include/kurator/engine/Clock.h b/engine/include/kurator/engine/Clock.h index 4e5e7b1..6b66ab3 100644 --- a/engine/include/kurator/engine/Clock.h +++ b/engine/include/kurator/engine/Clock.h @@ -9,10 +9,12 @@ namespace engine struct Clock { + Clock(); + void update(); + float dt; + float ui; + float game = 0.0f; float time_factor = 1.0f; - float dt() const; - float ui() const; - operator float() const; }; -- cgit v1.1