add default cvar getters
This commit is contained in:
parent
5a5bed5c31
commit
dcbd66a528
2 changed files with 25 additions and 0 deletions
|
|
@ -696,6 +696,10 @@ struct CVar native
|
|||
native int GetInt();
|
||||
native double GetFloat();
|
||||
native String GetString();
|
||||
bool GetDefaultBool() { return GetDefaultInt(); }
|
||||
native int GetDefaultInt();
|
||||
native double GetDefaultFloat();
|
||||
native String GetDefaultString();
|
||||
void SetBool(bool b) { SetInt(b); }
|
||||
native void SetInt(int v);
|
||||
native void SetFloat(double v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue