diff options
Diffstat (limited to 'game/server/globals.hh')
| -rw-r--r-- | game/server/globals.hh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/game/server/globals.hh b/game/server/globals.hh new file mode 100644 index 0000000..fdfc359 --- /dev/null +++ b/game/server/globals.hh @@ -0,0 +1,31 @@ +#ifndef SERVER_GLOBALS_HH +#define SERVER_GLOBALS_HH 1 +#pragma once + +#include "shared/globals.hh" + +namespace io +{ +class ConfigMap; +} // namespace io + +namespace world +{ +class Dimension; +} // namespace world + +namespace globals +{ +extern io::ConfigMap server_config; + +extern ENetHost* server_host; + +extern bool is_running; +extern unsigned int tickrate; +extern std::uint64_t tickrate_dt; + +extern world::Dimension* spawn_dimension; +extern std::unordered_map<std::string, world::Dimension*> dimensions; +} // namespace globals + +#endif // SERVER_GLOBALS_HH |
