Rigs of Rods 2023.09
Soft-body Physics Simulation
Loading...
Searching...
No Matches
ConsoleClass.h
Go to the documentation of this file.
1
2namespace Script2Game {
3
17{
18public:
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
Binding of RoR::Console; provides console variables (cvars), usually defined in RoR....
void cVarAssign(CVar *cvar, std::string const &value)
Parse value by cvar type.
CVar * cVarGet(std::string const &input_name, int flags)
Get cvar by short/long name, or create new one using input as short name.
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.
CVar * cVarSet(std::string const &input_name, std::string const &input_val)
Set existing cvar by short/long name.
CVar * cVarFind(std::string const &input_name)
Find cvar by short/long name.
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.