A conversation asset. More...
Public Member Functions | |
Conversation () | |
Initializes a new Conversation. More... | |
Conversation (Conversation sourceConversation) | |
Conversation (ChatMapper.Conversation chatMapperConversation, bool putEndSequenceOnLastSplit=true) | |
Initializes a new Conversation copied from a Chat Mapper conversation. More... | |
void | Assign (ChatMapper.Conversation chatMapperConversation, bool putEndSequenceOnLastSplit=true) |
Copies a Chat Mapper conversation. More... | |
DialogueEntry | GetDialogueEntry (string title) |
Looks up a dialogue entry by title. More... | |
DialogueEntry | GetDialogueEntry (int dialogueEntryID) |
Looks up a dialogue entry by its ID. More... | |
DialogueEntry | GetFirstDialogueEntry () |
Looks up the first dialogue entry in the conversation, defined (as in Chat Mapper) as the entry titled START. More... | |
void | SplitPipesIntoEntries (bool putEndSequenceOnLastSplit=true, bool trimWhitespace=false) |
Processes all dialogue entries, splitting entries containing pipe characters ("|") into multiple entries. 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... | |
Public Attributes | |
ConversationOverrideDisplaySettings | overrideSettings = new ConversationOverrideDisplaySettings() |
Optional settings to override the Dialogue Manager's Display Settings. More... | |
string | nodeColor = null |
Currently unused by the dialogue system, this is the nodeColor value defined in Chat Mapper. More... | |
List< DialogueEntry > | dialogueEntries = new List<DialogueEntry>() |
The dialogue entries in the conversation. More... | |
Vector2 | canvasScrollPosition = Vector2.zero |
Conversation's scroll position in Dialogue Editor window canvas. More... | |
float | canvasZoom = 1 |
Conversation's zoom level in Dialogue Editor window. More... | |
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... | |
Properties | |
string | Title [get, set] |
Gets or sets the Title field. More... | |
string | Description [get, set] |
Gets or sets the Description field. More... | |
int | ActorID [get, set] |
Gets or sets the Actor ID. More... | |
int | ConversantID [get, set] |
Gets or sets the Conversant ID. 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... | |
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).
PixelCrushers.DialogueSystem.Conversation.Conversation | ( | ) |
Initializes a new Conversation.
PixelCrushers.DialogueSystem.Conversation.Conversation | ( | Conversation | sourceConversation | ) |
PixelCrushers.DialogueSystem.Conversation.Conversation | ( | ChatMapper.Conversation | chatMapperConversation, |
bool | putEndSequenceOnLastSplit = true |
||
) |
Initializes a new Conversation copied from a Chat Mapper conversation.
chatMapperConversation | The Chat Mapper conversation. |
void PixelCrushers.DialogueSystem.Conversation.Assign | ( | ChatMapper.Conversation | chatMapperConversation, |
bool | putEndSequenceOnLastSplit = true |
||
) |
Copies a Chat Mapper conversation.
chatMapperConversation | The Chat Mapper conversation. |
DialogueEntry PixelCrushers.DialogueSystem.Conversation.GetDialogueEntry | ( | int | dialogueEntryID | ) |
Looks up a dialogue entry by its ID.
null
if no such entry exists. dialogueEntryID | The dialogue entry ID. |
DialogueEntry PixelCrushers.DialogueSystem.Conversation.GetDialogueEntry | ( | string | title | ) |
Looks up a dialogue entry by title.
null
if no such entry exists. title | The title of the dialogue entry. |
DialogueEntry PixelCrushers.DialogueSystem.Conversation.GetFirstDialogueEntry | ( | ) |
Looks up the first dialogue entry in the conversation, defined (as in Chat Mapper) as the entry titled START.
void PixelCrushers.DialogueSystem.Conversation.SplitPipesIntoEntries | ( | bool | putEndSequenceOnLastSplit = true , |
bool | trimWhitespace = false |
||
) |
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. |
deleteNewlinesAfterPipes | If newline follows pipe, delete it. |
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.
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 |
|
getset |
Gets or sets the Conversant ID.
The conversant is the other participant in the conversation.
The conversant ID.
|
getset |
Gets or sets the Description field.
The conversation's description, typically only used internally by the developer.
|
getset |
Gets or sets the Title field.
The title of the conversation, most often used to look up and start a specific conversation.