Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
CVarClass.h
Go to the documentation of this file.
1
2namespace Script2Game {
3
16{
17public:
18
22 std::string const& getStr() const { return m_value_str; }
23
24 float getFloat() const { return m_value_num; }
25
26 int getInt() const { return (int)m_value_num; }
27
28 bool getBool() const { return (bool)m_value_num; }
29
30 std::string const& getName() const { return m_name; }
31};
32
35
36} //namespace Script2Game
Binding of RoR::CVar; A console variable, usually defined in RoR.cfg but also created by users or scr...
Definition CVarClass.h:16
bool getBool() const
Definition CVarClass.h:28
float getFloat() const
Definition CVarClass.h:24
std::string const & getName() const
Definition CVarClass.h:30
std::string const & getStr() const
Get the value converted to string, works with any CVAR_TYPE.
Definition CVarClass.h:22
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.