Skip to main content

abstractPlugin

An Excalibur plugin packages up changes to excalibur in a convenient package such as

  • Custom config intercepting and implementation
  • Engine initialization customization
  • Graphics Context configuration including
    • Custom RendererPlugins
    • Custom PostProcessors
  • Scene customization including default ECS Systems, Components

Index

Constructors

constructor

Properties

name

name: string

Unique name of the plugin

priority

priority: number = 0

Plugin priority determines the order they're run, lower is first, higher is last, default is 0

Methods

optionaldispose

  • dispose(): void
  • Optinally perform any cleanup necessary when the engine is disposed


    Returns void

optionalonEnginePostConfig

  • Optionally intercept and mutate the {@param options} passed into the Engine, and modify the engine


    Parameters

    Returns void

optionalonEnginePostInitialize

  • onEnginePostInitialize(engine: Engine<any>): void
  • Optionally intercept the engine and modify after initialize


    Parameters

    Returns void

optionalonEnginePreConfig

  • Optionally intercept and mutate the {@param options} passed into the Engine, and modify the engine


    Parameters

    Returns void

optionalonEnginePreInitialize

  • onEnginePreInitialize(engine: Engine<any>): void
  • Optinally intercept the engine and modify before initialize


    Parameters

    Returns void

optionalonGraphicsPostConfig

optionalonGraphicsPostInitialize

  • Optionally intercetp the graphics context and modify after initialize


    Parameters

    Returns void

optionalonGraphicsPreConfig

optionalonGraphicsPreInitialize

  • Optionally intercetp the graphics context and modify before initialize


    Parameters

    Returns void

optionalonLoad

  • onLoad(): Promise<void>
  • Perform any async loading


    Returns Promise<void>

optionalonLoadComplete

  • onLoadComplete(): Promise<void>
  • Perform any extras when load complete


    Returns Promise<void>

optionalonScenePostInitialize

  • onScenePostInitialize(scene: Scene<unknown>): void
  • Optionally intercept a scene and modify after initialize


    Parameters

    Returns void

optionalonScenePreInitialize

  • onScenePreInitialize(scene: Scene<unknown>): void
  • Optionally intercept a scene and modify before initialize


    Parameters

    Returns void