C# Класс ConversationNode, XMGDialogue

Наследование: ConversationNodeView, ICloneable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

ConversationNode() публичный Метод

Initializes a conversation node with the parsed data
public ConversationNode ( object>.Dictionary parsedData ) : System.Collections
parsedData object>.Dictionary Parsed data.
Результат System.Collections

GetCurrentLine() публичный Метод

Gets the current line in this conversation line without advancing the conversation.
public GetCurrentLine ( ) : DialogueLine,
Результат DialogueLine,

GetNextLine() публичный Метод

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,
Результат DialogueLine,

GetTagValues() публичный Метод

Gets a list of values for a given tag.
public GetTagValues ( string tag ) : string[]
tag string Tag to get values for.
Результат string[]

HasNextLine() публичный Метод

Determines whether this instance has a next line.
public HasNextLine ( ) : bool
Результат bool

ResetConversation() публичный Метод

Resets the conversation pointer.
public ResetConversation ( ) : void
Результат void