|
using | CallbackArg = std::string_view |
|
|
| ConVar (std::string name_, ConVarValidType auto defaultValue, int flags_=CON_FLAG_NONE, std::function< void(CallbackArg)> onChanged=[](CallbackArg) {}) |
|
| ConVar (std::string name_, ConVarValidType auto defaultValue, std::string description_, int flags_=CON_FLAG_NONE, std::function< void(CallbackArg)> onChanged=[](CallbackArg) {}) |
|
ConVarType | getType () const |
|
std::string_view | getTypeAsString () const |
|
template<ConVarValidType T> |
T | getValue () const |
|
void | setValue (ConVarValidType auto newValue, bool runCallback=true) |
|
| operator std::string () const |
|
| ConEntry (std::string name_, std::string description_, int flags_=CON_FLAG_NONE) |
|
std::string_view | getName () const |
|
std::string_view | getDescription () const |
|
bool | hasFlag (ConFlags flag) const |
|
|
static bool | areCheatsEnabled () |
| Convenience function to check the value of sv_cheats.
|
|
|
std::string | name |
|
std::string | description |
|
int | flags |
|
Definition at line 99 of file ConEntry.h.
The documentation for this class was generated from the following files: