Loading...
Searching...
No Matches
PixelCrushers.QuestMachine.QuestConditionSet Class Reference

Manages a set of conditions, invoking a delegate when true. More...

Public Member Functions

void SetRuntimeReferences (Quest quest, QuestNode questNode)
 
void CloneSubassetsInto (QuestConditionSet copy, Quest quest=null)
 
void DestroySubassets ()
 
void StartChecking (System.Action trueAction)
 Starts checking conditions.
 
void StopChecking ()
 Stops checking conditions.
 
void ResetConditions ()
 Resets the condition set to the state where none of the conditions are marked true yet.
 

Static Public Member Functions

static int ConditionCount (QuestConditionSet conditionSet)
 

Properties

List< QuestConditionconditionList [get, set]
 Conditions in this condition set.
 
ConditionCountMode conditionCountMode [get, set]
 How many conditions need to be true for the connection to be true.
 
int minConditionCount [get, set]
 If the Condition Count Mode is Min, at least this many conditions must be true.
 
int numTrueConditions [get, set]
 The number of conditions that have reported true.
 
bool areConditionsMet [get]
 True if the conditions are met.
 

Detailed Description

Manages a set of conditions, invoking a delegate when true.

Member Function Documentation

◆ CloneSubassetsInto()

void PixelCrushers.QuestMachine.QuestConditionSet.CloneSubassetsInto ( QuestConditionSet  copy,
Quest  quest = null 
)
inline

◆ ConditionCount()

static int PixelCrushers.QuestMachine.QuestConditionSet.ConditionCount ( QuestConditionSet  conditionSet)
inlinestatic

◆ DestroySubassets()

void PixelCrushers.QuestMachine.QuestConditionSet.DestroySubassets ( )
inline

◆ ResetConditions()

void PixelCrushers.QuestMachine.QuestConditionSet.ResetConditions ( )
inline

Resets the condition set to the state where none of the conditions are marked true yet.

◆ SetRuntimeReferences()

void PixelCrushers.QuestMachine.QuestConditionSet.SetRuntimeReferences ( Quest  quest,
QuestNode  questNode 
)
inline

◆ StartChecking()

void PixelCrushers.QuestMachine.QuestConditionSet.StartChecking ( System::Action  trueAction)
inline

Starts checking conditions.

Does not reset true condition count because it may have been restored from a saved game.

Parameters
trueAction

◆ StopChecking()

void PixelCrushers.QuestMachine.QuestConditionSet.StopChecking ( )
inline

Stops checking conditions.

Property Documentation

◆ areConditionsMet

bool PixelCrushers.QuestMachine.QuestConditionSet.areConditionsMet
get

True if the conditions are met.

◆ conditionCountMode

ConditionCountMode PixelCrushers.QuestMachine.QuestConditionSet.conditionCountMode
getset

How many conditions need to be true for the connection to be true.

◆ conditionList

List<QuestCondition> PixelCrushers.QuestMachine.QuestConditionSet.conditionList
getset

Conditions in this condition set.

◆ minConditionCount

int PixelCrushers.QuestMachine.QuestConditionSet.minConditionCount
getset

If the Condition Count Mode is Min, at least this many conditions must be true.

◆ numTrueConditions

int PixelCrushers.QuestMachine.QuestConditionSet.numTrueConditions
getset

The number of conditions that have reported true.


The documentation for this class was generated from the following file: