blob: c44b03a54b3ac817e2f49e46063db550afcd0dd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: globals.hh
// Description: Global variables
#ifndef SERVER_GLOBALS_HH
#define SERVER_GLOBALS_HH
#pragma once
#include "shared/globals.hh"
class ConfigMap;
class Dimension;
namespace globals
{
extern ConfigMap server_config;
extern ENetHost* server_host;
extern bool is_running;
extern unsigned int tickrate;
extern std::uint64_t tickrate_dt;
extern Dimension* spawn_dimension;
extern std::unordered_map<std::string, Dimension*> dimensions;
} // namespace globals
#endif
|