An item asset. More...
Public Member Functions | |
| Item () | |
| Initializes a new Item. More... | |
| Item (Item sourceItem) | |
| Copy constructor. More... | |
| Item (ChatMapper.Item chatMapperItem) | |
| Initializes a new Item copied from a Chat Mapper item. More... | |
| void | Assign (ChatMapper.Item chatMapperItem) |
| Copies a Chat Mapper item. 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 | |
| bool | IsItem [get, set] |
| Gets or sets the field 'Is Item' which indicates whether this asset is an item or a quest. More... | |
| string | Group [get, set] |
| Gets or sets the field 'Group' which is an optional group for quest categorization. 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... | |
An item asset.
In Chat Mapper, items are usually used to track the status of items in the simulation. You can still do this in the dialogue system; however the QuestLog class gives you the option of using the item table to track quest log information instead. (See questLogSystem)
| PixelCrushers.DialogueSystem.Item.Item | ( | ) |
Initializes a new Item.
| PixelCrushers.DialogueSystem.Item.Item | ( | Item | sourceItem | ) |
Copy constructor.
| sourceItem | Source item. |
| PixelCrushers.DialogueSystem.Item.Item | ( | ChatMapper.Item | chatMapperItem | ) |
Initializes a new Item copied from a Chat Mapper item.
| chatMapperItem | The Chat Mapper item. |
| void PixelCrushers.DialogueSystem.Item.Assign | ( | ChatMapper.Item | chatMapperItem | ) |
Copies a Chat Mapper item.
| chatMapperItem | The Chat Mapper item. |
|
getset |
Gets or sets the field 'Group' which is an optional group for quest categorization.
The group, or empty string if none.
|
getset |
Gets or sets the field 'Is Item' which indicates whether this asset is an item or a quest.
true if asset is actually an item; false if the asset is actually a quest.