aboutsummaryrefslogtreecommitdiff
path: root/src/client/state/state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/state/state.cc')
-rw-r--r--src/client/state/state.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/state/state.cc b/src/client/state/state.cc
new file mode 100644
index 0000000..2423c9a
--- /dev/null
+++ b/src/client/state/state.cc
@@ -0,0 +1,15 @@
+#include "client/state/state.hh"
+
+namespace client {
+namespace state {
+
+shared::time_duration_t get_time_per_tick() noexcept {
+ return std::chrono::microseconds(1'000'000) / tickrate;
+}
+
+bool has_initialised() noexcept {
+ return state::localplayer_index.has_value();
+}
+
+} // namespace state
+} // namespace client