diff options
| author | Mel <einebeere@gmail.com> | 2024-02-12 13:01:15 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-12 13:01:15 +0100 |
| commit | 6a30c3e4f22de4d0f8f32107f614f597f5f39cc1 (patch) | |
| tree | a4e45ac6c5c728266eef1b42099494854744d497 /src/Time.hpp | |
| parent | d2b5fc5b3bc648afffa42375706429685ac63794 (diff) | |
| download | meowcraft-6a30c3e4f22de4d0f8f32107f614f597f5f39cc1.tar.zst meowcraft-6a30c3e4f22de4d0f8f32107f614f597f5f39cc1.zip | |
Rescue player from void if current chunk wasn't generated prior
Diffstat (limited to 'src/Time.hpp')
| -rw-r--r-- | src/Time.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Time.hpp b/src/Time.hpp index 83c41c0..04f22c8 100644 --- a/src/Time.hpp +++ b/src/Time.hpp @@ -7,6 +7,7 @@ namespace MC { class Time { public: using Timestamp = U64; + using Tick = U64; Time() = default; @@ -14,6 +15,7 @@ public: void end_frame(); U64 total_frames() const; + Tick tick() const; Real delta() const; static Timestamp now(); |
