Skip to content

Commit

Permalink
Added ZScript functions GetBool() and SetBool() to CVar class
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Oct 25, 2017
1 parent 5f7a06c commit 6617294
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wadsrc/static/zscript/base.txt
Expand Up @@ -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);
Expand Down

0 comments on commit 6617294

Please sign in to comment.