Hierarchy

  • default

Constructors

Properties

priority: number
tints: IRGB[] = []

Methods

  • Adds a new render layer.

    Parameters

    • renderLayer: StatusEffectRenderLayer

      The render layer this should render on (body, clothes, or hair).

    • spriteLine: number

      The line of the default sprite this status effect should render from.

    • Optional priority: number

      The priority of this layer relative to other layers in the same render layer.

    Returns default

  • Adds a new render layer.

    Parameters

    • renderLayer: StatusEffectRenderLayer

      The render layer this should render on (body, clothes, or hair).

    • renderFunction: IRenderLayerImplementation

      A function that takes a function to be used for rendering any sprites over the player.

    • Optional priority: number

      The priority of this layer relative to other layers in the same render layer.

    Returns default

  • Adds new tints.

    Parameters

    • Rest ...tints: IRGB[]

    Returns default

  • Return a list of tints that the body will render with. These are all merged with each other and any other tints from status effects currently on the body. Every tint has an even % except for the base body tint, which is 70%.

    Returns IRGB[]

  • Returns whether there are any registered render layers.

    Returns boolean

  • Return false to cancel rendering of the given layer.

    Parameters

    Returns boolean

Generated using TypeDoc