![]() |
Blamite Game Engine - Strings
00386.06.16.23.0646.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Namespace containing things relating to command-line switches. More...
Functions | |
STRINGS_API void | ParseSwitches (int args_count, char *args[]) |
Parses command-line switches from the initial variables from main() . More... | |
STRINGS_API std::vector< BlamCommandSwitch > | GetActiveSwitches () |
Retrieves the list of loaded command-line switches. More... | |
STRINGS_API bool | IsSwitchPresent (std::string switch_name) |
Determines if a given switch has been passed to the engine. More... | |
STRINGS_API std::vector< std::string > | GetSwitchArguments (std::string switch_name) |
Retrieves the list of arguments provided for the specified switch. More... | |
STRINGS_API std::string | GetSwitchValue (std::string switch_name) |
Retrieves the value of a switch. More... | |
Namespace containing things relating to command-line switches.
Command-line switches refer to arguments or values which are passed into the program at startup using the command line. For instance, you can start the game engine with the console enabled by using blamite.exe -console
.
std::vector< BlamCommandSwitch > BlamStrings::Settings::Switches::GetActiveSwitches | ( | ) |
Retrieves the list of loaded command-line switches.
std::vector< std::string > BlamStrings::Settings::Switches::GetSwitchArguments | ( | std::string | switch_name | ) |
Retrieves the list of arguments provided for the specified switch.
switch_name | - The name of the switch, without the - prefix. |
std::string BlamStrings::Settings::Switches::GetSwitchValue | ( | std::string | switch_name | ) |
Retrieves the value of a switch.
switch_name | - The name of the switch, without the - prefix. |
bool BlamStrings::Settings::Switches::IsSwitchPresent | ( | std::string | switch_name | ) |
Determines if a given switch has been passed to the engine.
switch_name | - The name of the switch, without the - prefix. |
true
if a switch is loaded, otherwise returns false
. void BlamStrings::Settings::Switches::ParseSwitches | ( | int | args_count, |
char * | args[] | ||
) |
Parses command-line switches from the initial variables from main()
.
args_count | - Number of command line arguments provided. |
args | - Array containing the command line arguments. |