Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

API for managing missions and their objectives.

 

properties

 

Mission

.new()

.name – name of mission (string)

...

.onTimeout() – triggered when mission timer runs out

.onSuccessstart() – triggered when start the mission successful

.onFailureonStart() – triggered when mission failedstarts

.setupfinish(success) – function to set-up game before finish the mission starts

.teardownonFinish(success) – function to clear-up the game after the mission endstriggered when mission successful

.objective(obj) – add an objective

...