1 2 3 4 5 6 7 8 9 10 11 12 13 14 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