immersive-home/docs/reference/lib--stores--store.md
2024-03-17 00:14:31 +01:00

3.7 KiB

Store

Inherits: RefCounted

Description

Abstract class for saving and loading data to and from a file.

Properties

Name Type Default
_loaded Variant false
_save_path Variant null

Methods

Returns Name
void clear ( )
Variant create_dict ( )
Variant is_loaded ( )
Variant load_local ( path: Variant )
Variant save_local ( path: Variant )
void use_dict ( dict: Dictionary )

Signals

on_loaded ( )

Signal emitted when the data is loaded.

on_saved ( )

Signal emitted when the data is saved.

Constants

VariantSerializer = <Object>

No description provided yet.

Property Descriptions

_loaded: Variant

No description provided yet.

_save_path: Variant

No description provided yet.

Method Descriptions

clear ( ) -> void

Resets the data to its default state.

create_dict ( ) -> Variant

No description provided yet.

is_loaded ( ) -> Variant

Returns true if the data has been loaded.

load_local (path: Variant ) -> Variant

No description provided yet.

save_local (path: Variant ) -> Variant

No description provided yet.

use_dict (dict: Dictionary ) -> void

No description provided yet.