OpenEnroth 553d3c3
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 }
 
enum class  Migration { MIGRATION_NONE , MIGRATION_DROP_REDUNDANT_KEY_EVENTS , MIGRATION_COLLAPSE_KEY_EVENTS , MIGRATION_DROP_PAINT_AFTER_ACTIVATE }
 

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
 
bool quickStart = false
 

Member Enumeration Documentation

◆ Migration

enum class OpenEnrothOptions::Migration
strong
Enumerator
MIGRATION_NONE 
MIGRATION_DROP_REDUNDANT_KEY_EVENTS 
MIGRATION_COLLAPSE_KEY_EVENTS 
MIGRATION_DROP_PAINT_AFTER_ACTIVATE 

◆ Subcommand

enum class OpenEnrothOptions::Subcommand
strong
Enumerator
SUBCOMMAND_GAME 
SUBCOMMAND_PLAY 
SUBCOMMAND_RETRACE 

Member Function Documentation

◆ parse()

static 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 file: