RigsofRods
Soft-body Physics Simulation
Modules | Data Structures | Enumerations | Functions
Console

Centerpiece of the application; parses command line & config, maintains cvars, logs messages. More...

+ Collaboration diagram for Console:

Modules

 Console commmands
 Built-in console commands.
 

Data Structures

class  RoR::Console
 Global game console backend. More...
 
class  RoR::ConsoleCmd
 Base (abstract) console command. More...
 
class  RoR::CVar
 Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts. More...
 

Enumerations

enum  RoR::CVarFlags {
  RoR::CVAR_TYPE_BOOL = BITMASK(1), RoR::CVAR_TYPE_INT = BITMASK(2), RoR::CVAR_TYPE_FLOAT = BITMASK(3), RoR::CVAR_ARCHIVE = BITMASK(4),
  RoR::CVAR_NO_LOG = BITMASK(5)
}
 

Functions

void RoR::Console::regBuiltinCommands ()
 Register builtin commands. More...
 
void RoR::Console::doCommand (std::string msg)
 Identify and execute any console line. More...
 
bool RoR::ConsoleCmd::CheckAppState (AppState state)
 

Detailed Description

Centerpiece of the application; parses command line & config, maintains cvars, logs messages.

Enumeration Type Documentation

◆ CVarFlags

Enumerator
CVAR_TYPE_BOOL 
CVAR_TYPE_INT 
CVAR_TYPE_FLOAT 
CVAR_ARCHIVE 

Will be written to RoR.cfg.

CVAR_NO_LOG 

Will not be written to RoR.log.

Definition at line 36 of file CVar.h.

Function Documentation

◆ CheckAppState()

bool ConsoleCmd::CheckAppState ( AppState  state)
protected

Definition at line 713 of file ConsoleCmd.cpp.

+ Here is the call graph for this function:

◆ doCommand()

void Console::doCommand ( std::string  msg)

Identify and execute any console line.

Definition at line 678 of file ConsoleCmd.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regBuiltinCommands()

void Console::regBuiltinCommands ( )

Register builtin commands.

Definition at line 650 of file ConsoleCmd.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: