SA_StorageManager
Summary
This component is responsible to save and load plans in standalone mode.
Constructor
SA_StorageManager
Syntax
SA_StorageManager
(
-
core
Summary
Parameters:
-
core
CoreThe main engine.
Item Index
Methods
Methods
_loadPlans
Syntax
_loadPlans
()
private
Summary
Load and display saved plans.
destroy
Syntax
destroy
()
Summary
Called when the component is destroyed. The menu item is removed.
disable
Syntax
disable
()
Summary
Disables the componentenable
Syntax
enable
()
Summary
Enables the componentgetTargeted
Syntax
Summary
Finds out if the given position is over an element handled by the componentParameters:
-
vector
VectorA position, usually the cursor's one.
Returns:
Object:
The targeted element, or null if nothing is found.
initialize
Syntax
initialize
()
Summary
Initializes the component by adding a new entry in the top menu.
internalSave
Syntax
internalSave
(
private
-
showMessage
Summary
Save the plan.
Parameters:
-
showMessage
BooleanSets to
true
to show a confirm message.
load
Syntax
load
(
-
uuid
-
success
-
fail
Summary
Load a plan by its uuid.
onContextChanged
Syntax
onContextChanged
(
-
context
Summary
Method called when the context is switched (2D -> 3D or 3D -> 2D)Parameters:
-
context
StringThe new context
save
Syntax
save
(
-
event
-
success
-
cancel
Summary
Save the current plan into the database.
startListening
Syntax
startListening
()
Summary
Calls all the event listeners.stopListening
Syntax
stopListening
()
Summary
Removes all the event listeners.synchronize
Syntax
synchronize
()
Summary
Force the synchronization of all plans.