mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Added ZScript functions GetBool() and SetBool() to CVar class
This commit is contained in:
parent
5f7a06c66e
commit
6617294c2d
1 changed files with 2 additions and 0 deletions
|
@ -302,9 +302,11 @@ struct CVar native
|
|||
|
||||
native static CVar FindCVar(Name name);
|
||||
native static CVar GetCVar(Name name, PlayerInfo player = null);
|
||||
bool GetBool() { return GetInt(); }
|
||||
native int GetInt();
|
||||
native double GetFloat();
|
||||
native String GetString();
|
||||
void SetBool(bool b) { SetInt(b); }
|
||||
native void SetInt(int v);
|
||||
native void SetFloat(double v);
|
||||
native void SetString(String s);
|
||||
|
|
Loading…
Reference in a new issue