GameStore
struct GameStore
A structure that represents the game’s store data.
-
A shared copy of the game store.
Declaration
Swift
static var shared: GameStore
-
The last scene that was loaded before the game ended.
Declaration
Swift
public var lastSavedScene: String { get set }
-
The number of times the player switched into the flash drive costume.
Declaration
Swift
public var costumeIncrementUSB: Int { get set }
-
The number of times the player switched into the bird costume.
Declaration
Swift
public var costumeIncrementBird: Int { get set }
-
The number of times the player switched into the sorceress costume.
Declaration
Swift
public var costumeIncrementSorceress: Int { get set }
-
Reset the game store to their default values.
Declaration
Swift
mutating func clear()
-
Initialize the game store data.
Values that don’t exist in the game store will be initialized with default values.
Declaration
Swift
init()