Local room variables class. Will not be saved if the room is persistent.
inline decrease (key:String, ?value:Int):Void
Decreases Int
value by a given amount.
Parameters:
key
Variable name.
value
Amount to decrease by. Defaults to 1.
getDynamic (key:String):Dynamic
Returns variable value as Dynamic
.
Parameters:
key
Variable name.
Returns:
Variable value. Returns null, if this variable is not found.
Returns variable value as Float
.
Parameters:
key
Variable name.
Returns:
Variable value. Returns 0, if this variable is not found.
Returns variable value as Int
.
Parameters:
key
Variable name.
Returns:
Variable value. Returns 0, if this variable is not found.
Returns variable value as String
.
Parameters:
key
Variable name.
Returns:
Variable value. Returns an empty string if the variable does not exist.
inline increase (key:String, ?value:Int):Void
Increases Int
value by a given amount.
Parameters:
key
Variable name.
value
(optional) Amount to increase by. Defaults to 1.