mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(console): add CVar::GetFloat
This commit is contained in:
parent
6d04495813
commit
f119a1836f
@ -123,6 +123,10 @@ const char* CVar::GetDefaultValue() {
|
||||
return this->m_defaultValue.GetString();
|
||||
}
|
||||
|
||||
float CVar::GetFloat() {
|
||||
return this->m_floatValue;
|
||||
}
|
||||
|
||||
int32_t CVar::GetInt() {
|
||||
return this->m_intValue;
|
||||
}
|
||||
|
||||
@ -37,6 +37,7 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
||||
// Member functions
|
||||
CVar();
|
||||
const char* GetDefaultValue();
|
||||
float GetFloat();
|
||||
int32_t GetInt();
|
||||
const char* GetString();
|
||||
void InternalSet(const char*, bool, bool, bool, bool);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user