Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QuestManager

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    Returns QuestManager

Properties

Readonly event

event: IEventEmitter<this, IQuestManagerEvents> = new EventEmitter<this, E>(this)

Methods

add

  • Parameters

    Returns this

complete

  • Parameters

    Returns boolean

getQuests

  • Get all quests

    Returns QuestInstance[]

  • Get all quests of the given type

    Parameters

    Returns QuestInstance[]

onGameStart

  • onGameStart(_isLoadingSave: boolean, _playedCount: number): void
  • Parameters

    • _isLoadingSave: boolean
    • _playedCount: number

    Returns void

onPlayerJoin

  • onPlayerJoin(player: Player): void
  • Parameters

    Returns void

reset

  • reset(): this
  • Removes all quests & disposes of any quest requirement triggers

    Returns this

Generated using TypeDoc