OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Public Types | Static Public Member Functions | Public Attributes | List of all members
OpenEnrothOptions Struct Reference

#include <OpenEnrothOptions.h>

Inheritance diagram for OpenEnrothOptions:
GameStarterOptions

Classes

struct  PlayOptions
 
struct  RetraceOptions
 

Public Types

enum class  Subcommand { SUBCOMMAND_GAME , SUBCOMMAND_PLAY , SUBCOMMAND_RETRACE }
 

Static Public Member Functions

static OpenEnrothOptions parse (int argc, char **argv)
 

Public Attributes

Subcommand subcommand = SUBCOMMAND_GAME
 
bool helpPrinted = false
 
RetraceOptions retrace
 
PlayOptions play
 
- Public Attributes inherited from GameStarterOptions
std::string dataPath
 
std::string userPath
 
std::optional< LogLevellogLevel
 
bool ramFsUserData = false
 
bool headless = false
 
bool tracingRng = false
 

Member Enumeration Documentation

◆ Subcommand

enum class OpenEnrothOptions::Subcommand
strong
Enumerator
SUBCOMMAND_GAME 
SUBCOMMAND_PLAY 
SUBCOMMAND_RETRACE 

Member Function Documentation

◆ parse()

OpenEnrothOptions OpenEnrothOptions::parse ( int  argc,
char **  argv 
)
static

Parses OpenEnroth command line options.

Parameters
argcargc as passed to main.
argvargv as passed to main.
Exceptions
std::exceptionOn errors.

Member Data Documentation

◆ helpPrinted

bool OpenEnrothOptions::helpPrinted = false

◆ play

PlayOptions OpenEnrothOptions::play

◆ retrace

RetraceOptions OpenEnrothOptions::retrace

◆ subcommand

Subcommand OpenEnrothOptions::subcommand = SUBCOMMAND_GAME

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