Pixi’VN
indexInterfaces

Interface: QuestHandlerInterface

nqtr on GitHub

Defined in: src/interface/quest/QuestHandlerInterface.ts:7

Handler that manages the quests registered in the game.

Properties

completedQuests

> readonly completedQuests: QuestInterface[]

Defined in: src/interface/quest/QuestHandlerInterface.ts:23

The quests that are completed.


failedQuests

> readonly failedQuests: QuestInterface[]

Defined in: src/interface/quest/QuestHandlerInterface.ts:27

The quests that are failed.


inProgressQuests

> readonly inProgressQuests: QuestInterface[]

Defined in: src/interface/quest/QuestHandlerInterface.ts:19

The quests that are in progress.


notStartedQuests

> readonly notStartedQuests: QuestInterface[]

Defined in: src/interface/quest/QuestHandlerInterface.ts:31

The quests that are not started.


quests

> readonly quests: QuestInterface[]

Defined in: src/interface/quest/QuestHandlerInterface.ts:11

The quests registered in the game.


startedQuests

> readonly startedQuests: QuestInterface[]

Defined in: src/interface/quest/QuestHandlerInterface.ts:15

The quests that are started, so they are in progress or completed or failed.

Methods

find()

> find(id): QuestInterface | undefined

Defined in: src/interface/quest/QuestHandlerInterface.ts:37

Get the quest by the id.

Parameters

id

string

The id of the quest.

Returns

QuestInterface | undefined

The quest with the id, or undefined if not found.


startsStageMustBeStarted()

> startsStageMustBeStarted(props): Promise<void>

Defined in: src/interface/quest/QuestHandlerInterface.ts:42

Start the current stage of every quest whose current stage must be started automatically.

Parameters

props

OnRunProps

The props passed to the functions triggered by the stages. See OnRunProps.

Returns

Promise<void>

On this page