RigsofRods
2023.09
Soft-body Physics Simulation
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
doc
angelscript
Script2Game
CVarClass.h
Go to the documentation of this file.
1
2
namespace
Script2Game
{
3
15
class
CVarClass
16
{
17
public
:
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
Script2Game::CVarClass
Binding of RoR::CVar; A console variable, usually defined in RoR.cfg but also created by users or scr...
Definition:
CVarClass.h:15
Script2Game
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition:
AngelImGui_enums.h:7
Script2Game::CVarClass::getBool
bool getBool() const
Definition:
CVarClass.h:28
Script2Game::CVarClass::getName
std::string const & getName() const
Definition:
CVarClass.h:30
Script2Game::CVarClass::getStr
std::string const & getStr() const
Get the value converted to string, works with any CVAR_TYPE.
Definition:
CVarClass.h:22
Script2Game::CVarClass::getFloat
float getFloat() const
Definition:
CVarClass.h:24
Script2Game::CVarClass::getInt
int getInt() const
Definition:
CVarClass.h:26
Generated by
1.8.17