DGM_SaveComponent
Summary
A component that send some informations about a plan when it's saved using the WebSocket
API.
Constructor
DGM_SaveComponent
Syntax
DGM_SaveComponent
(
-
core
Summary
Parameters:
-
core
CoreThe main engine.
Item Index
Methods
Methods
destroy
Syntax
destroy
()
Summary
Method called when the component is destroyeddisable
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
Initialize the component.
onContextChanged
Syntax
onContextChanged
(
-
context
Summary
Method called when the context is switched (2D -> 3D or 3D -> 2D)Parameters:
-
context
StringThe new context
sendToApplication
Syntax
sendToApplication
(
-
event
Summary
Send informations to the application using a WebSocket.
Parameters:
-
event
EventThe event.