A user variable asset. More...
Public Member Functions | |
Variable () | |
Initializes a new Variable. More... | |
Variable (Variable sourceVariable) | |
Copy constructor. More... | |
Variable (ChatMapper.UserVariable chatMapperUserVariable) | |
Initializes a new Variable copied from a Chat Mapper user variable. More... | |
void | Assign (ChatMapper.UserVariable chatMapperUserVariable) |
Copies a Chat Mapper user variable asset. More... | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.Asset | |
Asset () | |
Initializes a new DialogueAsset. More... | |
Asset (Asset sourceAsset) | |
Copy constructor. More... | |
Asset (int chatMapperID, List< ChatMapper.Field > chatMapperFields) | |
Initializes a new DialogueAsset copied from a Chat Mapper asset. More... | |
void | Assign (int chatMapperID, List< ChatMapper.Field > chatMapperFields) |
Copies a Chat Mapper asset. More... | |
bool | FieldExists (string title) |
Checks whether a field exists. More... | |
string | LookupValue (string title) |
Looks up the value of a field. More... | |
string | LookupLocalizedValue (string title) |
Looks up the localized value of a field for the current language. More... | |
int | LookupInt (string title) |
Looks up the value of a field. More... | |
float | LookupFloat (string title) |
Looks up the value of a field. More... | |
bool | LookupBool (string title) |
Looks up the value of a field. More... | |
bool | IsFieldAssigned (string title) |
Checks whether a field exists and has non-empty text. More... | |
Field | AssignedField (string title) |
Returns a field if it exists and has non-empty text. More... | |
Properties | |
string | InitialValue [get, set] |
Gets or sets the initial string value of a dialogue variable. More... | |
float | InitialFloatValue [get, set] |
Gets or sets the initial float value of a dialogue variable. More... | |
bool | InitialBoolValue [get, set] |
Gets or sets the initial bool value of a dialogue variable. More... | |
FieldType | Type [get, set] |
Gets the data type of the variable based on the data type of its initial value. More... | |
Properties inherited from PixelCrushers.DialogueSystem.Asset | |
string | Name [get, set] |
Gets or sets the Name field. More... | |
string | LocalizedName [get] |
Gets the localized Name field. More... | |
Additional Inherited Members | |
Public Attributes inherited from PixelCrushers.DialogueSystem.Asset | |
int | id = 0 |
Every asset has an ID number. More... | |
List< Field > | fields = null |
The asset's fields. More... | |
A user variable asset.
Chat Mapper allows you to define your own user variables that you reference in dialogue entry conditions and user scripts. This class represents those user variables in the dialogue system. As with Chat Mapper projects, a dialogue database contains a table of user variables (named "Variable[]") that you can access in Lua.
PixelCrushers.DialogueSystem.Variable.Variable | ( | ) |
Initializes a new Variable.
PixelCrushers.DialogueSystem.Variable.Variable | ( | Variable | sourceVariable | ) |
Copy constructor.
sourceVariable | Source variable. |
PixelCrushers.DialogueSystem.Variable.Variable | ( | ChatMapper.UserVariable | chatMapperUserVariable | ) |
Initializes a new Variable copied from a Chat Mapper user variable.
chatMapperUserVariable | The Chat Mapper user variable. |
void PixelCrushers.DialogueSystem.Variable.Assign | ( | ChatMapper.UserVariable | chatMapperUserVariable | ) |
Copies a Chat Mapper user variable asset.
chatMapperUserVariable | The Chat Mapper user variable. |
|
getset |
Gets or sets the initial bool value of a dialogue variable.
Use this when the data type is FieldType.Boolean.
The initial bool value.
|
getset |
Gets or sets the initial float value of a dialogue variable.
Use this when the data type is FieldType.Number.
The initial float value.
|
getset |
Gets or sets the initial string value of a dialogue variable.
The initial value.
|
getset |
Gets the data type of the variable based on the data type of its initial value.
The type.