feat(console): add CVar::GetFloat

This commit is contained in:
fallenoak 2025-11-18 19:53:30 -06:00
parent 6d04495813
commit f119a1836f
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 5 additions and 0 deletions

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;
}

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);