Conditions are used to selectively run actions. More...
Public Types | |
enum | LastEvaluationValue { LastEvaluationValue.None, LastEvaluationValue.True, LastEvaluationValue.False } |
Public Member Functions | |
bool | IsTrue (Transform interactor) |
Indicates whether this Condition is true. More... | |
Public Attributes | |
string[] | luaConditions = new string[0] |
Conditional expressions in Lua code. More... | |
QuestCondition[] | questConditions = new QuestCondition[0] |
Quest conditions. More... | |
string[] | acceptedTags = new string[0] |
The accepted tags. More... | |
GameObject[] | acceptedGameObjects = new GameObject[0] |
The accepted game objects. More... | |
int | luaWizardIndex = -1 |
LastEvaluationValue | lastEvaluationValue = LastEvaluationValue.None |
Conditions are used to selectively run actions.
A condition is made of any number of Lua conditions, quest conditions, accepted tags, and accepted game objects. In order for the Condition to be true, all subconditions must be true.
bool PixelCrushers.DialogueSystem.Condition.IsTrue | ( | Transform | interactor | ) |
Indicates whether this Condition is true.
GameObject [] PixelCrushers.DialogueSystem.Condition.acceptedGameObjects = new GameObject[0] |
The accepted game objects.
The Condition is true only if the interactor is in the list of accepted game objects, or if the list is empty.
string [] PixelCrushers.DialogueSystem.Condition.acceptedTags = new string[0] |
The accepted tags.
The Condition is true only if the interactor's tag is in the list of accepted tags, or if the list is empty.
LastEvaluationValue PixelCrushers.DialogueSystem.Condition.lastEvaluationValue = LastEvaluationValue.None |
string [] PixelCrushers.DialogueSystem.Condition.luaConditions = new string[0] |
int PixelCrushers.DialogueSystem.Condition.luaWizardIndex = -1 |
QuestCondition [] PixelCrushers.DialogueSystem.Condition.questConditions = new QuestCondition[0] |
Quest conditions.
The Condition is true only if all quest conditions are true.