.. _LokSceneStorageManager: ====================== LokSceneStorageManager ====================== **Inherits:** The :ref:`LokSceneStorageManager ` class can be communicate with the :ref:`LokGlobalStorageManager ` Singleton. Description =========== This class is useful when it is desired to trigger the :ref:`LokGlobalStorageManager ` methods through signal emissions in the scene tree using the inspector, for example. Also, this class can be used to perform certain operations including only some nodes of the current scene. **Version**: 1.0.0 **Author**: github.com/nadjiel _ Property Index ============== .. list-table:: :header-rows: 1 * - Type - Name - Default value * - :ref:`LokStorageManager ` - :ref:`_global_manager ` - ``LokGlobalStorageManager`` Method Index ============ .. list-table:: :header-rows: 1 * - Return type - Signature * - :ref:`void ` - :ref:`_push_error_no_manager `\(\)* - :ref:`Dictionary ` - :ref:`save_data `\(:ref:`String ` file_id = ``current_file``, :ref:`String ` version_number = ``current_version``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`bool ` replace = ``false``\)* - :ref:`Dictionary ` - :ref:`load_data `\(:ref:`String ` file_id = ``current_file``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`String `[] partition_ids = ``[]``, :ref:`String `[] version_numbers = ``[]``\)* - :ref:`Dictionary ` - :ref:`read_data `\(:ref:`String ` file_id = ``current_file``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`String `[] partition_ids = ``[]``, :ref:`String `[] version_numbers = ``[]``\)* - :ref:`Dictionary ` - :ref:`remove_data `\(:ref:`String ` file_id = ``current_file``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`String `[] partition_ids = ``[]``, :ref:`String `[] version_numbers = ``[]``\) Property Descriptions ===================== .. _LokSceneStorageManager__global_manager: :ref:`LokStorageManager ` _global_manager = ``LokGlobalStorageManager`` ------------------------------------------------------------------------------------------ The :ref:`_global_manager <_global_manager>` property should not be altered since it's just a reference to the :ref:`LokGlobalStorageManager ` autoload. Its reference is stored here instead of called directly to make mocking it with unit testing easier. Method Descriptions =================== .. _LokSceneStorageManager__push_error_no_manager: :ref:`void ` _push_error_no_manager\(\) --------------------------------------------- The :ref:`_push_error_no_manager <_push_error_no_manager>` method pushes an error indicating that no :ref:`LokGlobalStorageManager ` was found in the :ref:`_global_manager <_global_manager>` property, which shouldn't happen if that property wasn't altered, as recommended in its description. .. _LokSceneStorageManager_save_data: :ref:`Dictionary ` save_data\(:ref:`String ` file_id = ``current_file``, :ref:`String ` version_number = ``current_version``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`bool ` replace = ``false``\) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The :ref:`save_data ` method is an intermidiate to calling the :ref:`LokGlobalStorageManager.save_data ` method. Using this method, though, only the :ref:`LokAccessorGroup.accessors ` of this :ref:`LokSceneStorageManager ` are included in the saving process, by default. To read more about the parameters and return of this method, see the :ref:`LokStorageManager.save_data ` description. The start and finish of this operation is notified via the :ref:`LokStorageManager.saving_started ` and :ref:`LokStorageManager.saving_finished ` signals. .. _LokSceneStorageManager_load_data: :ref:`Dictionary ` load_data\(:ref:`String ` file_id = ``current_file``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`String `[] partition_ids = ``[]``, :ref:`String `[] version_numbers = ``[]``\) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The :ref:`load_data ` method is an intermidiate to calling the :ref:`LokGlobalStorageManager.load_data ` method. Using this method, though, only the :ref:`LokAccessorGroup.accessors ` of this :ref:`LokSceneStorageManager ` are included in the loading process, by default. To read more about the parameters and return of this method, see the :ref:`LokStorageManager.load_data ` description. The start and finish of this operation is notified via the :ref:`LokStorageManager.loading_started ` and :ref:`LokStorageManager.loading_finished ` signals. .. _LokSceneStorageManager_read_data: :ref:`Dictionary ` read_data\(:ref:`String ` file_id = ``current_file``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`String `[] partition_ids = ``[]``, :ref:`String `[] version_numbers = ``[]``\) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The :ref:`read_data ` method is an intermidiate to calling the :ref:`LokGlobalStorageManager.read_data ` method. Using this method, though, only the :ref:`LokAccessorGroup.accessors ` of this :ref:`LokSceneStorageManager ` are included in the reading process, by default. To read more about the parameters and return of this method, see the :ref:`LokStorageManager.read_data ` description. The start and finish of this operation is notified via the :ref:`LokStorageManager.reading_started ` and :ref:`LokStorageManager.reading_finished ` signals. .. _LokSceneStorageManager_remove_data: :ref:`Dictionary ` remove_data\(:ref:`String ` file_id = ``current_file``, :ref:`LokStorageAccessor `[] included_accessors = ``accessors``, :ref:`String `[] partition_ids = ``[]``, :ref:`String `[] version_numbers = ``[]``\) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The :ref:`remove_data ` method is an intermidiate to calling the :ref:`LokGlobalStorageManager.remove_data ` method. Using this method, though, only the :ref:`LokAccessorGroup.accessors ` of this :ref:`LokSceneStorageManager ` are included in the removing process, by default. To read more about the parameters and return of this method, see the :ref:`LokStorageManager.remove_data ` description. The start and finish of this operation is notified via the :ref:`LokStorageManager.removing_started ` and :ref:`LokStorageManager.removing_finished ` signals.