PixelCrushers.DialogueSystem.Condition Class Reference

Conditions are used to selectively run actions. More...

Inheritance diagram for PixelCrushers.DialogueSystem.Condition:
Collaboration diagram for PixelCrushers.DialogueSystem.Condition:

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
 

Detailed Description

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.

Member Enumeration Documentation

◆ LastEvaluationValue

Enumerator
None 
True 
False 

Member Function Documentation

◆ IsTrue()

bool PixelCrushers.DialogueSystem.Condition.IsTrue ( Transform  interactor)

Indicates whether this Condition is true.

Member Data Documentation

◆ acceptedGameObjects

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.

◆ acceptedTags

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

LastEvaluationValue PixelCrushers.DialogueSystem.Condition.lastEvaluationValue = LastEvaluationValue.None

◆ luaConditions

string [] PixelCrushers.DialogueSystem.Condition.luaConditions = new string[0]

Conditional expressions in Lua code.

The Condition is true only if all Lua conditions evaluate to true.

[Lua code:] Variable["Gold"] > 50

◆ luaWizardIndex

int PixelCrushers.DialogueSystem.Condition.luaWizardIndex = -1

◆ questConditions

QuestCondition [] PixelCrushers.DialogueSystem.Condition.questConditions = new QuestCondition[0]

Quest conditions.

The Condition is true only if all quest conditions are true.


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