aboutsummaryrefslogtreecommitdiff
path: root/src/client/state/state.cc
blob: 2423c9a3ed3bd2518accf3668a77afc14802b104 (plain)
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