:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/../../GodotApplePlugins/doc_classes/GKSavedGame.xml. .. _class_GKSavedGame: GKSavedGame =========== **Inherits:** :ref:`GKPlayer` **<** :ref:`RefCounted` **<** :ref:`Object` Represents a saved game .. rst-class:: classref-introduction-group 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 .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------------+------------------------------------------------------------+--------+ | :ref:`String` | :ref:`device_name` | ``""`` | +-----------------------------+------------------------------------------------------------+--------+ | :ref:`String` | :ref:`name` | ``""`` | +-----------------------------+------------------------------------------------------------+--------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +--------+----------------------------------------------------------------------------------------------------+ | |void| | :ref:`load_data`\ (\ done\: :ref:`Callable`\ ) | +--------+----------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_GKSavedGame_property_device_name: .. rst-class:: classref-property :ref:`String` **device_name** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - :ref:`String` **get_device_name**\ (\ ) Name of the saved game. .. rst-class:: classref-item-separator ---- .. _class_GKSavedGame_property_name: .. rst-class:: classref-property :ref:`String` **name** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - :ref:`String` **get_name**\ (\ ) The name of the device where the player saved the game. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_GKSavedGame_method_load_data: .. rst-class:: classref-method |void| **load_data**\ (\ done\: :ref:`Callable`\ ) :ref:`🔗` 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. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`