GKSavedGame

Inherits: GKPlayer < RefCounted < Object

Represents a saved game

Description

Instances of this class are returned after you save a game with GKLocalPlayer’s save_game_data, or

after you load the game data with GKLocalPlayer fetch_saved_games

Properties

String

device_name

""

float

modification_date

0.0

String

name

""

Methods

void

load_data(done: Callable)


Property Descriptions

String device_name = "" 🔗

  • String get_device_name()

Name of the saved game.


float modification_date = 0.0 🔗

  • float get_modification_date()

The date when you saved the game data or modified it. Game Center sets this property when you save game data using the save_game_data method. If you save game data using an existing filename, Game Center overwrites the file with the new data and changes the modification date.


String name = "" 🔗

  • String get_name()

The name of the device where the player saved the game.


Method Descriptions

void load_data(done: Callable) 🔗

Loads the game data, and invokes the provided callbacj with the first argument

being a PackedByteArray and the second argument being a Variant encoding an error,

if not-nil it contains a string description of the problem.