Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
Blam::Switches::CommandSwitch Struct Reference

Structure representing a command-line switch. More...

#include <switches.h>

Public Attributes

std::string name
 The name of the switch, excluding the - prefix. More...
 
std::vector< std::string > options
 Any arguments passed to the switch. Will be empty if no arguments were provided. More...
 

Detailed Description

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.

Todo:
find a way to add spaces support (maybe through quotes or something idk)

Member Data Documentation

◆ name

std::string Blam::Switches::CommandSwitch::name

The name of the switch, excluding the - prefix.

◆ options

std::vector<std::string> Blam::Switches::CommandSwitch::options

Any arguments passed to the switch. Will be empty if no arguments were provided.


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