class ConCommandBase {
public:
// Get
float GetFloat() {
typedef float (*Fn)(void*);
return Memory::GetVFunc<Fn>(this, 13)(this);
}
int GetInt() {
typedef int (*Fn)(void*);
return Memory::GetVFunc<Fn>(this, 14)(this);
}
bool GetBool() {
typedef bool (*Fn)(void*);
return Memory::GetVFunc<Fn>(this, 15)(this);
}
// Set
void SetString(const char* value) {
typedef void (*Fn)(void*, const char*);
Memory::GetVFunc<Fn>(this, 16)(this, value);
}
void SetFloat(float value) {
typedef void (*Fn)(void*, float);
Memory::GetVFunc<Fn>(this, 17)(this, value);
}
void SetInt(int value) {
typedef void (*Fn)(void*, int);
Memory::GetVFunc<Fn>(this, 18)(this, value);
}
void SetBool(bool value) {
typedef void (*Fn)(void*, bool);
Memory::GetVFunc<Fn>(this, 19)(this, value);
}
};
class ICvar {
public:
ConCommandBase* FindCommandBase(char const* convar) {
typedef ConCommandBase* (*Fn)(void*, char const*);
return Memory::GetVFunc<Fn>(this, 16)(this, convar);
}
};