Manages a set of conditions, invoking a delegate when true.
More...
Manages a set of conditions, invoking a delegate when true.
◆ 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 |
◆ RecheckConditions()
bool PixelCrushers.QuestMachine.QuestConditionSet.RecheckConditions |
( |
| ) |
|
|
inline |
Recheck conditions (typically offer conditions) to make sure they're still true if they were marked true.
Note: Does not reset numTrueConditions. This method is used to block quest offers if a quest was initially marked as offerable but then the offer conditions became false later.
◆ 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
-
◆ StopChecking()
void PixelCrushers.QuestMachine.QuestConditionSet.StopChecking |
( |
| ) |
|
|
inline |
Stops checking conditions.
◆ areConditionsMet
bool PixelCrushers.QuestMachine.QuestConditionSet.areConditionsMet |
|
get |
True if the conditions are met.
◆ conditionCountMode
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:
- C:/Dev/Quest Machine/Dev/Source/Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Condition Set/QuestConditionSet.cs