Edit

Share via


EffectTypes Class

Represents a type of effect - like poison - that can be applied to an entity.

Methods

get

static "get"(identifier: string): EffectType | undefined

Effect type for the given identifier.

Parameters

  • identifier: string

    The identifier for the effect.

Returns EffectType | undefined - Effect type for the given identifier or undefined if the effect does not exist.

Notes:

  • This function can't be called in read-only mode.

getAll

static getAll(): EffectType[]

Gets all effects.

Returns EffectType[] - A list of all effects.

Notes:

  • This function can't be called in read-only mode.