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 = utl::Config::Window::DEFAULT_WINDOW_WIDTH
 
unsigned int height = utl::Config::Window::DEFAULT_WINDOW_HEIGHT
 
unsigned int frameLimit = utl::Config::Window::DEFAULT_WINDOW_FRAME_LIMIT
 
bool fullscreen = utl::Config::Window::DEFAULT_WINDOW_FULLSCREEN
 
std::string host = utl::Config::Network::DEFAULT_NETWORK_HOST
 
unsigned int port = utl::Config::Network::DEFAULT_NETWORK_PORT
 
std::string player_name = utl::Config::Player::DEFAULT_PLAYER_NAME
 
std::string audio_lib_path = utl::Path::Plugin::PLUGIN_AUDIO_SFML.string()
 
std::string network_lib_path = utl::Path::Plugin::PLUGIN_NETWORK_ASIO_CLIENT.string()
 
std::string renderer_lib_path = utl::Path::Plugin::PLUGIN_RENDERER_SFML.string()
 
std::string game_solo_lib_path = utl::Path::Plugin::PLUGIN_GAME_SOLO.string()
 
std::string game_multi_lib_path = utl::Path::Plugin::PLUGIN_GAME_MULTI.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, game_multi_lib_path, game_solo_lib_path, height, host, network_lib_path, player_name, 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 = utl::Path::Plugin::PLUGIN_AUDIO_SFML.string()

Definition at line 28 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 = utl::Config::Window::DEFAULT_WINDOW_FRAME_LIMIT

Definition at line 23 of file ArgsHandler.hpp.

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

◆ fullscreen

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

Definition at line 24 of file ArgsHandler.hpp.

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

◆ game_multi_lib_path

std::string cli::ArgsConfig::game_multi_lib_path = utl::Path::Plugin::PLUGIN_GAME_MULTI.string()

Definition at line 32 of file ArgsHandler.hpp.

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

◆ game_solo_lib_path

std::string cli::ArgsConfig::game_solo_lib_path = utl::Path::Plugin::PLUGIN_GAME_SOLO.string()

Definition at line 31 of file ArgsHandler.hpp.

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

◆ height

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

Definition at line 22 of file ArgsHandler.hpp.

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

◆ host

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

Definition at line 25 of file ArgsHandler.hpp.

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

◆ network_lib_path

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

Definition at line 29 of file ArgsHandler.hpp.

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

◆ player_name

std::string cli::ArgsConfig::player_name = utl::Config::Player::DEFAULT_PLAYER_NAME

Definition at line 27 of file ArgsHandler.hpp.

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

◆ port

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

Definition at line 26 of file ArgsHandler.hpp.

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

◆ renderer_lib_path

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

Definition at line 30 of file ArgsHandler.hpp.

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

◆ width

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

Definition at line 21 of file ArgsHandler.hpp.

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


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