C# Class ConversationNode, XMGDialogue

Inheritance: ConversationNodeView, ICloneable
Afficher le fichier Open project: xmgstudio/XMGDialogue Class Usage Examples

Méthodes publiques

Méthode Description
ConversationNode ( object>.Dictionary parsedData ) : System.Collections

Initializes a conversation node with the parsed data

GetCurrentLine ( ) : DialogueLine,

Gets the current line in this conversation line without advancing the conversation.

GetNextLine ( ) : DialogueLine,

Advances the point and gets the next line in the dialogue, returns null if the pointer is beyond the end of the dialogue.

GetTagValues ( string tag ) : string[]

Gets a list of values for a given tag.

HasNextLine ( ) : bool

Determines whether this instance has a next line.

ResetConversation ( ) : void

Resets the conversation pointer.

Private Methods

Méthode Description
GetStringForKey ( object>.Dictionary dict, string key ) : string

Gets a string from a dictionary by key. If the dictionary does not contain that key return an empty string.

ParseScript ( string bodyTagData ) : void

Function for parsing the script information out of the body tag.

ParseTags ( string tagString ) : void

Parse the tag string out into the meta-information dictionary.

Method Details

ConversationNode() public méthode

Initializes a conversation node with the parsed data
public ConversationNode ( object>.Dictionary parsedData ) : System.Collections
parsedData object>.Dictionary Parsed data.
Résultat System.Collections

GetCurrentLine() public méthode

Gets the current line in this conversation line without advancing the conversation.
public GetCurrentLine ( ) : DialogueLine,
Résultat DialogueLine,

GetNextLine() public méthode

Advances the point and gets the next line in the dialogue, returns null if the pointer is beyond the end of the dialogue.
public GetNextLine ( ) : DialogueLine,
Résultat DialogueLine,

GetTagValues() public méthode

Gets a list of values for a given tag.
public GetTagValues ( string tag ) : string[]
tag string Tag to get values for.
Résultat string[]

HasNextLine() public méthode

Determines whether this instance has a next line.
public HasNextLine ( ) : bool
Résultat bool

ResetConversation() public méthode

Resets the conversation pointer.
public ResetConversation ( ) : void
Résultat void