Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.ObjectiveInstance Class Reference

Public Member Functions

 ObjectiveInstance (int objectiveID)
 
 ObjectiveInstance (int objectiveID, int startingStateID)
 
 ObjectiveInstance (string saveData)
 

Protected Attributes

Objective linkedObjective
 
int currentStateID
 

Properties

Objective Objective [get]
 
int CurrentStateID [get, set]
 
ObjectiveState CurrentState [get]
 
string SaveData [get]
 

Detailed Description

A runtime instance of an active Objective

Property Documentation

◆ CurrentState

ObjectiveState AC.ObjectiveInstance.CurrentState
get

The instance's current objective state

◆ CurrentStateID

int AC.ObjectiveInstance.CurrentStateID
getset

The ID number of the instance's current objective state

◆ Objective

Objective AC.ObjectiveInstance.Objective
get

The Objective this instance is linked to

◆ SaveData

string AC.ObjectiveInstance.SaveData
get

A data string containing all saveable data