Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LibraryManager

A static singleton class used to load libraries and packet hooks.

Hierarchy

  • LibraryManager

Index

Constructors

constructor

Properties

clientHookStore

clientHookStore: Map<string, HookInfo<Client>> = new Map()

hookStore

hookStore: Map<string, Array<HookInfo<any>>> = new Map()

libStore

libStore: Map<string, ManagedLib<any>> = new Map()

Private loadQueue

loadQueue: Map<string, LoadedLib<any>>

runtime

runtime: Runtime

Methods

callHooks

  • callHooks(packet: Packet, client: Client): void
  • Invokes any packet hook methods which are registered for the given packet type.

    Parameters

    • packet: Packet
    • client: Client

    Returns void

loadClientHooks

  • loadClientHooks(): void

loadLib

loadPlugins

  • loadPlugins(pluginFolder: string): void
  • Loads and stores all libraries present in the plugins folder.

    Parameters

    • pluginFolder: string

    Returns void

Generated using TypeDoc