C# Class ConversationNode, XMGDialogue

Inheritance: ConversationNodeView, ICloneable
Mostrar archivo Open project: xmgstudio/XMGDialogue Class Usage Examples

Public Methods

Method 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

Method 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 method

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

GetCurrentLine() public method

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

GetNextLine() public method

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,
return DialogueLine,

GetTagValues() public method

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

HasNextLine() public method

Determines whether this instance has a next line.
public HasNextLine ( ) : bool
return bool

ResetConversation() public method

Resets the conversation pointer.
public ResetConversation ( ) : void
return void