Class AbstractEventsManager<ET, D>Abstract

This class is a Manager of events (listeners, observers, etc.)

Export

Abstract

Type Parameters

  • ET

    EventType

  • D

    Event object

Hierarchy-Diagram

UML class diagram of AbstractEventsManager
Legend
icon for a class in the UML class diagram class
icon for an abstract class in the UML class diagram abstract class
icon for a private property in the UML class diagram private property
icon for a public method in the UML class diagram public method
icon for a protected method in the UML class diagram protected method
italic abstract property/method

Hierarchy

Properties

_events: Map<ET, IEvent<D>>

Constructors

Methods

  • This method will trigger the callback assigned to the given eventType

    Memberof

    OSFramework.Event.AbstractEventsManager

    Parameters

    • eventType: ET
    • Optional data: D
    • Rest ...args: unknown[]

    Returns void

  • Protected

    This method will be responsible for creating the correct instance of the Event based in the EventType that is passed.

    Abstract

    Returns

    {IEvent} Instance of the event.

    Memberof

    OSFramework.Event.AbstractEventsManager

    Parameters

    • eventType: ET

      Type of the event that will we need an instance of.

    Returns IEvent<D>

Accessors