Game variables access. Game variables are described in detail in Game Variables article.

Methods

inline getBool (id:String):Bool

Returns game variable value as Bool.

Parameters:

id

Game variable name.

Returns:

Game variable value.

inline getDynamic (id:String):Dynamic

Returns game variable value as an anonymous object.

Parameters:

id

Game variable name.

Returns:

Game variable value.

inline getFloat (id:String):Float

Returns game variable value as Float.

Parameters:

id

Game variable name.

Returns:

Game variable value. Returns 0.0 if the game variable does not exist.

inline getInt (id:String):Int

Returns game variable value as Int.

Parameters:

id

Game variable name.

Returns:

Game variable value. Returns 0 if the game variable does not exist.

inline getString (id:String):String

Returns game variable value as String.

Parameters:

id

Game variable name.

Returns:

Game variable value.

inline iterator ():Iterator<String>

Returns an iterator of all game variable names.

Returns:

An iterator of game variable names.