A conversation asset. More...
Public Member Functions | |
Conversation () | |
Initializes a new Conversation. | |
Conversation (Conversation sourceConversation) | |
Conversation (ChatMapper.Conversation chatMapperConversation, bool putEndSequenceOnLastSplit=true) | |
Initializes a new Conversation copied from a Chat Mapper conversation. | |
void | Assign (ChatMapper.Conversation chatMapperConversation, bool putEndSequenceOnLastSplit=true) |
Copies a Chat Mapper conversation. | |
DialogueEntry | GetDialogueEntry (string title) |
Looks up a dialogue entry by title. | |
DialogueEntry | GetDialogueEntry (int dialogueEntryID) |
Looks up a dialogue entry by its ID. | |
DialogueEntry | GetFirstDialogueEntry () |
Looks up the first dialogue entry in the conversation, defined (as in Chat Mapper) as the entry titled START. | |
void | SplitPipesIntoEntries (bool putEndSequenceOnLastSplit=true, bool trimWhitespace=false, string uniqueFieldTitle=null) |
Processes all dialogue entries, splitting entries containing pipe characters ("|") into multiple entries. | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.Asset | |
Asset () | |
Initializes a new DialogueAsset. | |
Asset (Asset sourceAsset) | |
Copy constructor. | |
Asset (int chatMapperID, List< ChatMapper.Field > chatMapperFields) | |
Initializes a new DialogueAsset copied from a Chat Mapper asset. | |
void | Assign (int chatMapperID, List< ChatMapper.Field > chatMapperFields) |
Copies a Chat Mapper asset. | |
bool | FieldExists (string title) |
Checks whether a field exists. | |
string | LookupValue (string title) |
Looks up the value of a field. | |
string | LookupLocalizedValue (string title) |
Looks up the localized value of a field for the current language. | |
int | LookupInt (string title) |
Looks up the value of a field. | |
float | LookupFloat (string title) |
Looks up the value of a field. | |
bool | LookupBool (string title) |
Looks up the value of a field. | |
bool | IsFieldAssigned (string title) |
Checks whether a field exists and has non-empty text. | |
Field | AssignedField (string title) |
Returns a field if it exists and has non-empty text. | |
Public Attributes | |
ConversationOverrideDisplaySettings | overrideSettings = new ConversationOverrideDisplaySettings() |
Optional settings to override the Dialogue Manager's Display Settings. | |
string | nodeColor = null |
Currently unused by the dialogue system, this is the nodeColor value defined in Chat Mapper. | |
List< DialogueEntry > | dialogueEntries = new List<DialogueEntry>() |
The dialogue entries in the conversation. | |
List< EntryGroup > | entryGroups = new List<EntryGroup>() |
Vector2 | canvasScrollPosition = Vector2.zero |
Conversation's scroll position in Dialogue Editor window canvas. | |
float | canvasZoom = 1 |
Conversation's zoom level in Dialogue Editor window. | |
Public Attributes inherited from PixelCrushers.DialogueSystem.Asset | |
int | id = 0 |
Every asset has an ID number. | |
List< Field > | fields = null |
The asset's fields. | |
Properties | |
string | Title [get, set] |
Gets or sets the Title field. | |
int | ActorID [get, set] |
Gets or sets the Actor ID. | |
int | ConversantID [get, set] |
Gets or sets the Conversant ID. | |
Properties inherited from PixelCrushers.DialogueSystem.Asset | |
string | Name [get, set] |
Gets or sets the Name field. | |
string | localizedName [get] |
Gets the localized Name field. | |
string | Description [get, set] |
Gets or sets the Description field, which is optional and may not exist. | |
A conversation asset.
A conversation is a collection of dialogue entries (see DialogueEntry) that are linked together to form branching, interactive dialogue between two actors (see Actor).
|
inline |
Initializes a new Conversation.
|
inline |
|
inline |
Initializes a new Conversation copied from a Chat Mapper conversation.
chatMapperConversation | The Chat Mapper conversation. |
|
inline |
Copies a Chat Mapper conversation.
chatMapperConversation | The Chat Mapper conversation. |
|
inline |
Looks up a dialogue entry by its ID.
null
if no such entry exists. dialogueEntryID | The dialogue entry ID. |
|
inline |
Looks up a dialogue entry by title.
null
if no such entry exists. title | The title of the dialogue entry. |
|
inline |
Looks up the first dialogue entry in the conversation, defined (as in Chat Mapper) as the entry titled START.
|
inline |
Processes all dialogue entries, splitting entries containing pipe characters ("|") into multiple entries.
putEndSequenceOnLastSplit | Put sequencer commands with end keyword on the last split entry, other commands on the first entry, and use default delay for middle entries. |
trimWhitespace | Trim whitespace such as newlines. |
uniqueFieldTitle | If specified, add "-1", "-2", etc., to this field. |
Vector2 PixelCrushers.DialogueSystem.Conversation.canvasScrollPosition = Vector2.zero |
Conversation's scroll position in Dialogue Editor window canvas.
float PixelCrushers.DialogueSystem.Conversation.canvasZoom = 1 |
Conversation's zoom level in Dialogue Editor window.
List<DialogueEntry> PixelCrushers.DialogueSystem.Conversation.dialogueEntries = new List<DialogueEntry>() |
The dialogue entries in the conversation.
List<EntryGroup> PixelCrushers.DialogueSystem.Conversation.entryGroups = new List<EntryGroup>() |
string PixelCrushers.DialogueSystem.Conversation.nodeColor = null |
Currently unused by the dialogue system, this is the nodeColor value defined in Chat Mapper.
ConversationOverrideDisplaySettings PixelCrushers.DialogueSystem.Conversation.overrideSettings = new ConversationOverrideDisplaySettings() |
Optional settings to override the Dialogue Manager's Display Settings.
|
getset |
Gets or sets the Actor ID.
The actor is the primary participant in the conversation.
The actor ID.
|
getset |
Gets or sets the Conversant ID.
The conversant is the other participant in the conversation.
The conversant ID.
|
getset |
Gets or sets the Title field.
The title of the conversation, most often used to look up and start a specific conversation.