4.8 KiB
4.8 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 |
state | RdotStore |
Methods
Returns | Name |
---|---|
void | clear ( ) |
Variant | is_loaded ( ) |
Variant | load_local ( path: Variant ) |
Variant | sanitizeState ( dict: Variant ) |
Variant | save_local ( path: Variant ) |
void | use_dict ( dict: Dictionary, target: Variant ) |
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.
state: RdotStore
No description provided yet.
Method Descriptions
clear ( ) -> void
Resets the data to its default state.
is_loaded ( ) -> Variant
Returns true if the data has been loaded.
load_local (path: Variant ) -> Variant
No description provided yet.
sanitizeState (dict: Variant ) -> Variant
No description provided yet.
save_local (path: Variant ) -> Variant
No description provided yet.
use_dict (dict: Dictionary , target: Variant ) -> void
No description provided yet.