Added ZScript functions GetBool() and SetBool() to CVar class

This commit is contained in:
alexey.lysiuk 2017-10-25 10:33:18 +03:00
parent 5f7a06c66e
commit 6617294c2d

View file

@ -302,9 +302,11 @@ struct CVar native
native static CVar FindCVar(Name name); native static CVar FindCVar(Name name);
native static CVar GetCVar(Name name, PlayerInfo player = null); native static CVar GetCVar(Name name, PlayerInfo player = null);
bool GetBool() { return GetInt(); }
native int GetInt(); native int GetInt();
native double GetFloat(); native double GetFloat();
native String GetString(); native String GetString();
void SetBool(bool b) { SetInt(b); }
native void SetInt(int v); native void SetInt(int v);
native void SetFloat(double v); native void SetFloat(double v);
native void SetString(String s); native void SetString(String s);