C# 클래스 ConversationNode, XMGDialogue

상속: ConversationNodeView, ICloneable
파일 보기 프로젝트 열기: xmgstudio/XMGDialogue 1 사용 예제들

공개 메소드들

메소드 설명
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