Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
config.h File Reference

The main file for the config io. More...

#include <memory>
#include <rapidjson/document.h>
#include <types/chatmessage.h>
#include <utils/file.h>
#include <plugins/luaheaders.h>

Go to the source code of this file.

Classes

class  Field< T >
 The Field Object for the Config. More...
 
class  Config
 The config class. More...
 

Macros

#define CONFIG_FIELDS
 List of all the config fields.
 
#define MC_VERSION_NUMBER   47
 The Version Number.
 
#define MC_VERSION_NAME   "Mineserver 1.8.9"
 The Version Name.
 

Detailed Description

The main file for the config io.

Author
Lygaen
Version
1.0
Date
2023-03-20

Macro Definition Documentation

◆ CONFIG_FIELDS

#define CONFIG_FIELDS
Value:
UF(PORT) UF(MOTD) UF(LOGLEVEL) UF(COMPRESSION_LVL) UF(ONLINE_MODE) UF(ADDRESS) \
UF(BACKLOG) UF(MAX_PLAYERS) UF(ICON_FILE) UF(PREVENT_PROXY_CONNECTIONS) UF(COMPRESSION_THRESHOLD)
constexpr std::string_view type_name()
Gets the name of the type paramater.
Definition event.h:56
LogLevel LOGLEVEL
The current stored loglevel.
Definition logger.cpp:20

List of all the config fields.

List of all of the above config fields, used as a handy tool to run similar functions on all of the fields by defining the UF(x) macro.

◆ MC_VERSION_NAME

#define MC_VERSION_NAME   "Mineserver 1.8.9"

The Version Name.

The corresponding version name that should be sent to connecting clients.

◆ MC_VERSION_NUMBER

#define MC_VERSION_NUMBER   47

The Version Number.

The corresponding version number for MC 1.8.9. From wiki.vg, of course.