Skip to content

Store

Inherits: RefCounted

Description

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

Properties

NameTypeDefault
_loadedVariantfalse
_save_pathVariantnull
stateRdotStore

Methods

ReturnsName
voidclear ( )
Variantis_loaded ( )
Variantload_local ( path: Variant )
VariantsanitizeState ( dict: Variant )
Variantsave_local ( path: Variant )
voiduse_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.