r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
cli::ArgsConfig Struct Reference

#include <ArgsHandler.hpp>

+ Collaboration diagram for cli::ArgsConfig:

Static Public Member Functions

static ArgsConfig fromFile (const std::string &path)
 

Public Attributes

bool exit = false
 
unsigned int width = Config::Window::DEFAULT_WINDOW_WIDTH
 
unsigned int height = Config::Window::DEFAULT_WINDOW_HEIGHT
 
unsigned int frameLimit = Config::Window::DEFAULT_WINDOW_FRAME_LIMIT
 
bool fullscreen = Config::Window::DEFAULT_WINDOW_FULLSCREEN
 
std::string host = Config::Network::DEFAULT_NETWORK_HOST
 
unsigned int port = Config::Network::DEFAULT_NETWORK_PORT
 
std::string audio_lib_path = Path::Plugin::PLUGIN_AUDIO_SFML.string()
 
std::string network_lib_path = Path::Plugin::PLUGIN_NETWORK_ASIO_CLIENT.string()
 
std::string renderer_lib_path = Path::Plugin::PLUGIN_RENDERER_SFML.string()
 

Detailed Description

Definition at line 18 of file ArgsHandler.hpp.

Member Function Documentation

◆ fromFile()

cli::ArgsConfig cli::ArgsConfig::fromFile ( const std::string & path)
static

Definition at line 26 of file argsHandler.cpp.

References audio_lib_path, frameLimit, fullscreen, height, host, network_lib_path, port, renderer_lib_path, and width.

Referenced by cli::ArgsHandler::ParseArgs().

+ Here is the caller graph for this function:

Member Data Documentation

◆ audio_lib_path

std::string cli::ArgsConfig::audio_lib_path = Path::Plugin::PLUGIN_AUDIO_SFML.string()

Definition at line 27 of file ArgsHandler.hpp.

Referenced by cli::Client::Client(), and fromFile().

◆ exit

bool cli::ArgsConfig::exit = false

Definition at line 20 of file ArgsHandler.hpp.

Referenced by main().

◆ frameLimit

unsigned int cli::ArgsConfig::frameLimit = Config::Window::DEFAULT_WINDOW_FRAME_LIMIT

Definition at line 23 of file ArgsHandler.hpp.

Referenced by cli::Client::Client(), and fromFile().

◆ fullscreen

bool cli::ArgsConfig::fullscreen = Config::Window::DEFAULT_WINDOW_FULLSCREEN

Definition at line 24 of file ArgsHandler.hpp.

Referenced by cli::Client::Client(), and fromFile().

◆ height

unsigned int cli::ArgsConfig::height = Config::Window::DEFAULT_WINDOW_HEIGHT

Definition at line 22 of file ArgsHandler.hpp.

Referenced by cli::Client::Client(), and fromFile().

◆ host

std::string cli::ArgsConfig::host = Config::Network::DEFAULT_NETWORK_HOST

Definition at line 25 of file ArgsHandler.hpp.

Referenced by fromFile().

◆ network_lib_path

std::string cli::ArgsConfig::network_lib_path = Path::Plugin::PLUGIN_NETWORK_ASIO_CLIENT.string()

Definition at line 28 of file ArgsHandler.hpp.

Referenced by cli::Client::Client(), and fromFile().

◆ port

unsigned int cli::ArgsConfig::port = Config::Network::DEFAULT_NETWORK_PORT

Definition at line 26 of file ArgsHandler.hpp.

Referenced by fromFile().

◆ renderer_lib_path

std::string cli::ArgsConfig::renderer_lib_path = Path::Plugin::PLUGIN_RENDERER_SFML.string()

Definition at line 29 of file ArgsHandler.hpp.

Referenced by cli::Client::Client(), and fromFile().

◆ width

unsigned int cli::ArgsConfig::width = Config::Window::DEFAULT_WINDOW_WIDTH

Definition at line 21 of file ArgsHandler.hpp.

Referenced by cli::Client::Client(), and fromFile().


The documentation for this struct was generated from the following files: