3#include <nlohmann/json.hpp>
GameConfig getDefaultConfig()
Generates a GameConfig with default values. Note: Not using a constructor as then aggregate initializ...
Definition: config.cpp:74
Definition: config.hpp:12
bool procedural
whether or not to generate and use a procedurally generated maze
Definition: config.hpp:25
bool draw_bboxes
Definition: config.hpp:64
struct GameConfig::@0::@4 maze
int server_port
Port that the server is running on. This should be a value between 2302-2400, or 6073 so that it can ...
Definition: config.hpp:42
int max_players
max number of players this server allows
Definition: config.hpp:51
std::string maze_file
Name of the maze file within the maze maps directory that the server should load.
Definition: config.hpp:31
bool fps_counter
Definition: config.hpp:65
bool fullscreen
Definition: config.hpp:63
bool lobby_discovery
Whether or not the client should listen for server lobby broadcasts.
Definition: config.hpp:62
std::string default_name
Default name of the client.
Definition: config.hpp:60
bool disable_dm
whether or not the server will spawn a DM
Definition: config.hpp:53
struct GameConfig::@1 network
Shared config settings for the network.
bool disable_enemies
Definition: config.hpp:34
bool skip_intro
whether or not to skip the intro cutscene
Definition: config.hpp:55
bool presentation
Definition: config.hpp:66
struct GameConfig::@0 game
Game config options.
static GameConfig parse(int argc, char **argv)
Definition: config.cpp:9
std::string lobby_name
Name of the server's lobby.
Definition: config.hpp:47
struct GameConfig::@2 server
Config settings for the server.
struct GameConfig::@3 client
Config settings for the client.
std::string server_ip
IP that the server is being hosted on. E.g. "127.0.0.1" for localhost.
Definition: config.hpp:39
int render
Definition: config.hpp:67
bool lobby_broadcast
Whether or not the server should broadcast that the server is.
Definition: config.hpp:49
std::string directory
Path of the directory (contained in the repository directory) that contains maze map files.
Definition: config.hpp:20