feat(console): add CVar::GetFloat

This commit is contained in:
fallenoak committed 2025-11-18 19:53:30 -06:00
1 parent 6d04495813
commit f119a1836f
2 files changed
+5

No files matched your search

+4
View File
@@ -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;
}
+1
View File
@@ -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);