-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.hpp
More file actions
53 lines (44 loc) · 1.13 KB
/
config.hpp
File metadata and controls
53 lines (44 loc) · 1.13 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <filesystem>
#include <string>
class Config {
private:
std::filesystem::path _execPath;
// Version Config
std::string _gameVersion;
int _protocolVersion;
// Server Config
std::string _serverMotd;
std::string _serverAddress;
int _serverPort;
int _serverSize;
// World Config
std::string _worldName;
std::string _gamemode;
std::string _difficulty;
public:
Config();
~Config();
bool loadConfig();
bool reloadConfig();
int getServerPort();
int getProtocolVersion();
int getServerSize();
std::string getVersion();
std::string getServerMotd();
std::string getServerAddress();
std::string getWorldName();
std::string getGamemode();
std::string getDifficulty();
void setProtocolVersion(int ProtoVersion);
void setServerSize(int ServerSize);
void setServerPort(int ServerPort);
void setServerMotd(std::string ServerMotd);
void setServerVersion(std::string ServerVersion);
void setServerAddress(std::string ServerAddress);
void setWorldName(std::string WorldName);
void setGamemode(std::string Gamemode);
void setDifficulty(std::string Difficulty);
};
#endif