![]() |
Rigs of Rods 2023.09
Soft-body Physics Simulation
|
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts. More...
#include <CVar.h>
Public Member Functions | |
| CVar (std::string const &name, std::string const &long_name, int flags) | |
| template<typename T > | |
| void | setVal (T val) |
| void | setStr (std::string const &str) |
| std::string const & | getStr () const |
| float | getFloat () const |
| int | getInt () const |
| bool | getBool () const |
| template<typename T > | |
| T | getEnum () const |
| std::string const & | getName () const |
| std::string const & | getLongName () const |
| bool | hasFlag (int f) const |
Private Member Functions | |
| void | logUpdate (std::string const &new_val) |
| std::string | convertStr (float val) |
Private Attributes | |
| std::string | m_name |
| std::string | m_long_name |
| std::string | m_value_str |
| float | m_value_num |
| int | m_flags |
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts.
Inspired by Quake II: