Class: ExtensionContext
The extension context is a native (C++) object created for each registered Editor Extension, when a player connection is established with the server. A registered extension activation or deactivation closure is accompanied by an [ExtensionContext] object, which provides a player specific, editor extension specific context. The Extension Context is the main interface to all the bound Editor Services. As more player services are added to the editor, they will be exposed through this object
Constructors
new ExtensionContext()
private
new ExtensionContext():ExtensionContext
Returns
Properties
afterEvents
readonly
afterEvents:ExtensionContextAfterEvents
Remarks
Contains a set of events that are applicable to the editor player. Event callbacks are called in a deferred manner. Event callbacks are executed in read-write mode.
blockPalette
readonly
blockPalette:BlockPaletteManager
brushShapeManager
readonly
brushShapeManager:BrushShapeManager
clipboardManager
readonly
clipboardManager:ClipboardManager
Remarks
This is used to access the players Clipboard Manager and the main interface through which the player can create, modify and apply clipboard items
cursor
readonly
cursor:Cursor
Remarks
This is used to access the players 3D block cursor and it's properties
exportManager
readonly
exportManager:ExportManager
extensionInfo
readonly
extensionInfo:Extension
Remarks
Contains information about the registered extension instance.
player
readonly
player:Player
Remarks
The current player which is the subject of the extension invocation
playtest
readonly
playtest:PlaytestManager
selectionManager
readonly
selectionManager:SelectionManager
Remarks
The instance of the players Selection Manager and the main interface through which the player can create/modify selections
settings
readonly
settings:SettingsManager
Remarks
The instance of the players Settings Manager and the contract through which the settings for the player can be modified.
transactionManager
readonly
transactionManager:TransactionManager
Remarks
The instance of the players Transaction Manager and the main interface through which the creator can create transaction records, and undo/redo previous transactions
widgetManager
readonly
widgetManager:WidgetManager