mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(console): add CVar::GetFloat
This commit is contained in:
2 files changed
+5
No files matched your search
@@ -123,6 +123,10 @@ const char* CVar::GetDefaultValue() {
|
|||||||
return this->m_defaultValue.GetString();
|
return this->m_defaultValue.GetString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float CVar::GetFloat() {
|
||||||
|
return this->m_floatValue;
|
||||||
|
}
|
||||||
|
|
||||||
int32_t CVar::GetInt() {
|
int32_t CVar::GetInt() {
|
||||||
return this->m_intValue;
|
return this->m_intValue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
|||||||
// Member functions
|
// Member functions
|
||||||
CVar();
|
CVar();
|
||||||
const char* GetDefaultValue();
|
const char* GetDefaultValue();
|
||||||
|
float GetFloat();
|
||||||
int32_t GetInt();
|
int32_t GetInt();
|
||||||
const char* GetString();
|
const char* GetString();
|
||||||
void InternalSet(const char*, bool, bool, bool, bool);
|
void InternalSet(const char*, bool, bool, bool, bool);
|
||||||
|
|||||||
Reference in new issue
Block a user