GameTemp Class
The GameTemp holds the temporary data of the currently running game like currently displayed choices, choice timer, etc. The GameTemp is written to the save-game as well.
Methods
clear
()
Clears the game temp.
restore
(
-
data
Restores the game-temp from a data-bundle.
Parameters:
-
data
Object- A data-bundle to restore the game-temp from.
toDataBundle
()
Object
Serializes the game-temp into a data-bundle.
Returns:
Object:
A data-bundle which can be serialized to JSON.
Properties
choices
Object
Stores the current choices.
choiceTimer
gs.Object_Timer
Stores the current choice timer.