Methods

  • Gets a plugin by name.

    Type Parameters

    Parameters

    • pName: string

      String name of the plugin to retrieve.

    Returns undefined | T

  • Lists all registered plugins.

    Returns string[]

  • Initialize the Kit class with plugins.

    Type Parameters

    Parameters

    • pPlugins: KitPluginConstructor<T>[]

      An array of plugins to initialize.

    Returns void

    Use registerPlugin instead.

  • Removes an event listener.

    Parameters

    • pPluginName: string

      The plugin namespace.

    • pEventName: string

      The event name.

    • pListener: Listener

      The listener to remove.

    Returns void

  • Listen for an event.

    Parameters

    • pPluginName: string

      The plugin namespace.

    • pEventName: string

      The event name.

    • pListener: Listener

      The listener to call when the event is emitted.

    Returns void

  • Register a plugin with the Kit class.

    Type Parameters

    Parameters

    • pPlugin: KitPluginConstructor<T>

      The plugin to register.

    Returns T

  • Register a plugin with the Kit class.

    Type Parameters

    Parameters

    • pPlugin: KitPluginConstructor<T>[]

      The plugin to register.

    Returns T[]

  • Sets the resources found in resources and preloads all interfaces found.

    Parameters

    Returns Promise<void>