跳到主要内容

Interface: ActionManager

Binds actions to the client and manages their lifetime. Action managers are managed on a per player basis since client side UI is per player.

Properties

activeToolId

activeToolId: string

Remarks

The active tool ID

Methods

createAction()

createAction<T>(rawAction): RegisteredAction<T>

Type parameters

Type parameter
T extends Action

Parameters

ParameterTypeDescription
rawActionTThe raw action to create. See ActionTypes for supported
parameters

Returns

RegisteredAction<T>

Remarks

Creates an action and registers it on the client