thingorigin2.0
    正在准备搜索索引...

    层级

    • EventDispatcher
      • TEventDispatcher
    索引

    构造函数

    方法

    • Adds a listener to an event type.

      类型参数

      • T extends never

      参数

      • type: T

        The type of event to listen to.

      • listener: EventListener<{}[T], T, TEventDispatcher>

        The function that gets called when the event is fired.

      返回 void

    • Adds a listener to an event type.

      类型参数

      • T extends string

      参数

      • type: T

        The type of event to listen to.

      • listener: EventListener<{}, T, TEventDispatcher>

        The function that gets called when the event is fired.

      返回 void

    • Fire an event type.

      类型参数

      • T extends never

      参数

      • event: BaseEvent<T> & {}[T]

        The event that gets fired.

      返回 void

    • Checks if listener is added to an event type.

      类型参数

      • T extends never

      参数

      • type: T

        The type of event to listen to.

      • listener: EventListener<{}[T], T, TEventDispatcher>

        The function that gets called when the event is fired.

      返回 boolean

    • Checks if listener is added to an event type.

      类型参数

      • T extends string

      参数

      • type: T

        The type of event to listen to.

      • listener: EventListener<{}, T, TEventDispatcher>

        The function that gets called when the event is fired.

      返回 boolean

    • Removes a listener from an event type.

      类型参数

      • T extends never

      参数

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{}[T], T, TEventDispatcher>

        The listener function that gets removed.

      返回 void

    • Removes a listener from an event type.

      类型参数

      • T extends string

      参数

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{}, T, TEventDispatcher>

        The listener function that gets removed.

      返回 void