|
Aegis2D
Modular C++26 2D game engine for networked games
|
Console variables set at start, from the command line (+set name value) or a settings file, so that a value changes without recompiling.
More...
#include <aegis2d/core/console_variables.hpp>#include <aegis2d/core/export.hpp>#include <filesystem>#include <span>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | aegis2d::core::VarSetting |
| A variable to set, as a command line or a settings file gives it. More... | |
| struct | aegis2d::core::VarSettings |
| Settings read from a command line or a file, and what could not be read. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::core |
| Logging, time, main loop, events and configuration shared by client and server. | |
Functions | |
| VarSettings | aegis2d::core::settings_from_arguments (std::span< const std::string_view > arguments) |
Reads the +set name value of a command line. | |
| VarSettings | aegis2d::core::settings_from_arguments (int argc, char **argv) |
Reads the +set name value of main()'s arguments. | |
| VarSettings | aegis2d::core::settings_from_text (std::string_view text, std::string_view origin) |
| Reads settings from text, one per line. | |
| VarSettings | aegis2d::core::settings_from_file (const std::filesystem::path &file) |
| Reads settings from a file, as settings_from_text() reads text. | |
| std::vector< std::string > | aegis2d::core::apply_settings (ConsoleVariables &variables, std::span< const VarSetting > settings) |
| Sets variables, in order: a later setting wins over an earlier one. | |
Console variables set at start, from the command line (+set name value) or a settings file, so that a value changes without recompiling.