![]() |
Blamite Game Engine - Strings
00386.06.16.23.0646.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Structure representing a command-line switch. More...
#include <switches.h>
Public Attributes | |
std::string | name = "unknown" |
The name of the switch, excluding the - prefix. More... | |
std::string | value = "" |
The value provided to the switch. Will be an empty string if no value was provided. More... | |
Structure representing a command-line switch.
These are switches/flags passed to the engine via the command line. A switch can either be a switch on its own (ie, -console
) or it can include arguments (ie, -vidmode w,h,r
). Arguments must NOT contain any spaces. For multiple arguments, commas should be used. A switch MUST begin with a -
or else it will be treated as an argument for the previous switch, or be ignored if the previous switch already had arguments passed to it.
std::string BlamCommandSwitch::name = "unknown" |
The name of the switch, excluding the -
prefix.
std::string BlamCommandSwitch::value = "" |
The value provided to the switch. Will be an empty string if no value was provided.