接口 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.

interface ActionManager {
    createAction<T extends Action>(rawAction: T): RegisteredAction<T>;
}

方法

  • 实验性

    类型参数

    参数

    • rawAction: T

      The raw action to create. See ActionTypes for supported parameters

    返回 RegisteredAction<T>

    Creates an action and registers it on the client