RigsofRods
Soft-body Physics Simulation
ConsoleClass.h
Go to the documentation of this file.
1 
2 namespace Script2Game {
3 
17 {
18 public:
22  CVar* cVarCreate(std::string const& name, std::string const& long_name,
23  int flags, std::string const& val = std::string());
24 
28  void cVarAssign(CVar* cvar, std::string const& value);
29 
33  CVar* cVarFind(std::string const& input_name);
34 
38  CVar* cVarSet(std::string const& input_name, std::string const& input_val);
39 
43  CVar* cVarGet(std::string const& input_name, int flags);
44 };
45 
48 
49 } //namespace Script2Game
Script2Game::ConsoleClass::cVarGet
CVar * cVarGet(std::string const &input_name, int flags)
Get cvar by short/long name, or create new one using input as short name.
Script2Game
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition: BeamClass.h:2
Script2Game::ConsoleClass
Binding of RoR::Console; provides console variables (cvars), usually defined in RoR....
Definition: ConsoleClass.h:16
Script2Game::ConsoleClass::cVarCreate
CVar * cVarCreate(std::string const &name, std::string const &long_name, int flags, std::string const &val=std::string())
Add CVar and parse default value if specified.
Script2Game::ConsoleClass::cVarFind
CVar * cVarFind(std::string const &input_name)
Find cvar by short/long name.
Script2Game::ConsoleClass::cVarAssign
void cVarAssign(CVar *cvar, std::string const &value)
Parse value by cvar type.
Script2Game::ConsoleClass::cVarSet
CVar * cVarSet(std::string const &input_name, std::string const &input_val)
Set existing cvar by short/long name.