Class QuestObjectiveInstance
Tracks runtime progress for a single quest objective.
public class QuestObjectiveInstance
- Inheritance
-
QuestObjectiveInstance
- Inherited Members
Constructors
QuestObjectiveInstance(QuestObjective, long)
Constructs a new objective instance from a template with an optional starting value.
public QuestObjectiveInstance(QuestObjective template, long initialValue = 0)
Parameters
templateQuestObjectiveThe quest objective template.
initialValuelongOptional starting progress value.
Properties
CurrentValue
The current progress value for this objective.
public long CurrentValue { get; }
Property Value
IsComplete
Returns true when progress meets or exceeds the required value.
public bool IsComplete { get; }
Property Value
Template
The quest objective template that defines this instance.
public QuestObjective Template { get; }
Property Value
Methods
Increment(long)
Increments progress by the given amount, clamping to the required value.
public void Increment(long amount)
Parameters
amountlongThe amount to add.
SetValue(long)
Sets the current progress to an exact value, clamping between zero and required.
public void SetValue(long value)
Parameters
valuelongThe value to set.