Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QuestRequirement<O, D>

Type parameters

  • O: any[]

  • D: {}

Hierarchy

  • QuestRequirement

Index

Constructors

constructor

  • Parameters

    • defaultData: D

    Returns QuestRequirement

Properties

Readonly defaultData

defaultData: D

Methods

getCompletionAmount

  • Parameters

    Returns number

getEventBusTriggers

getHostTriggers

  • getHostTriggers(): IterableIterator<["respawn" | "damage" | "spawn" | "tickStart" | "tickEnd" | "restored" | "updateOption" | "displayMessage" | "interruptResponse" | "getMaxHealth" | "getMaxWeight" | "shouldDie" | "die" | "shouldRespawn" | "inventoryItemAdd" | "inventoryItemRemove" | "inventoryItemUpdate" | "processMovement" | "getMovementIntent" | "noInput" | "walkPathChange" | "moveComplete" | "changeZ" | "getWeightStatus" | "getWeightOrStaminaMovementPenalty" | "restStart" | "restEnd" | "writeNote" | "writtenNote" | "readNote" | "reregister" | "deregister" | "canConsumeItem" | "canDropItem" | "canAttack" | "calculateEquipmentStats" | "isSwimming" | "statusChange" | "created" | "removed" | "preMove" | "postMove" | "statChanged" | "statTimerChanged" | "statTimerWillChange" | "statTimerRemoved" | "statMaxChanged" | "statBonusChanged" | "skillChange", (api: IQuestRequirementApi<O, D>, player: Player, ...args: any[]) => boolean]>
  • Returns IterableIterator<["respawn" | "damage" | "spawn" | "tickStart" | "tickEnd" | "restored" | "updateOption" | "displayMessage" | "interruptResponse" | "getMaxHealth" | "getMaxWeight" | "shouldDie" | "die" | "shouldRespawn" | "inventoryItemAdd" | "inventoryItemRemove" | "inventoryItemUpdate" | "processMovement" | "getMovementIntent" | "noInput" | "walkPathChange" | "moveComplete" | "changeZ" | "getWeightStatus" | "getWeightOrStaminaMovementPenalty" | "restStart" | "restEnd" | "writeNote" | "writtenNote" | "readNote" | "reregister" | "deregister" | "canConsumeItem" | "canDropItem" | "canAttack" | "calculateEquipmentStats" | "isSwimming" | "statusChange" | "created" | "removed" | "preMove" | "postMove" | "statChanged" | "statTimerChanged" | "statTimerWillChange" | "statTimerRemoved" | "statMaxChanged" | "statBonusChanged" | "skillChange", (api: IQuestRequirementApi<O, D>, player: Player, ...args: any[]) => boolean]>

getInitializeTrigger

  • Returns undefined | ((api: IQuestRequirementApi<O, D>) => boolean)

getRelations

  • Parameters

    Returns [HighlightType, string | number | (() => T)][]

getTranslation

getTriggers

  • Returns IterableIterator<[Hook, (api: IQuestRequirementApi<O, D>, ...args: any[]) => boolean]>

setCompletionAmountGetter

setEventTrigger

  • setEventTrigger<E, K>(bus: E, event: K, checker: (api: IQuestRequirementApi<O, D>, ...args: Parameters<Handler<E, K>>) => boolean): this

setHostTrigger

setInitializeTrigger

setRelations

setTranslation

setTrigger

Protected validateOptions

  • validateOptions(...options: O): boolean
  • Parameters

    • Rest ...options: O

    Returns boolean

Generated using TypeDoc