mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(console): add CVar::GetDefaultValue
This commit is contained in:
parent
8c60418231
commit
50b7dadbc7
@ -119,6 +119,10 @@ CVar::CVar() : TSHashObject<CVar, HASHKEY_STRI>() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
const char* CVar::GetDefaultValue() {
|
||||
return this->m_defaultValue.GetString();
|
||||
}
|
||||
|
||||
int32_t CVar::GetInt() {
|
||||
return this->m_intValue;
|
||||
}
|
||||
|
||||
@ -36,8 +36,9 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
||||
|
||||
// Member functions
|
||||
CVar();
|
||||
const char* GetDefaultValue();
|
||||
int32_t GetInt();
|
||||
const char* GetString(void);
|
||||
const char* GetString();
|
||||
void InternalSet(const char*, bool, bool, bool, bool);
|
||||
bool Set(const char*, bool, bool, bool, bool);
|
||||
int32_t Update();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user