IQuestTask

Quest Service

Interface

Interface that represents a task for a ISpatialQuest.

Properties

id

Unique ID of the task

name

Name of the task

progress

The current progress of the task.

progressSteps

The number of steps required to complete the task.

status

Gets the status of the task.

taskMarkers

Task marker objects

type

Type of task.

Methods

Complete()

Completes the task.

SetOnCompleted(Action)

Sets the onCompleted action and returns the task.

SetOnPreviouslyCompleted(Action)

Sets the onPreviouslyCompleted action and returns the task.

SetOnStarted(Action)

Sets the onStarted action and returns the task.

Start()

Starts the task.

Events

onCompleted

Event called when this task is completed.

onPreviouslyCompleted

Event that is triggered when the user loads into a space where a task was previously completed. Only used when the quest's ISpatialQuest.saveUserProgress is set to true. This event allows you to “fast forward” any settings in the scene that should be enabled if a task was previously completed.

onStarted

Event called when this task is started.