private TalkRef GetTalkRef() { TalkRef talkRef = null; if (_syncStruct.HasField(TEXT)) { talkRef = (TalkRef)_syncStruct [TEXT]; } else if (_mainStruct.HasField(TEXT)) { talkRef = (TalkRef)_mainStruct [TEXT]; } return(talkRef); }
public DialogNode(Dialog dialog, GffStruct gffStruct, bool isReply) { _dialog = dialog; _syncStruct = gffStruct; _isReply = isReply; if (gffStruct.HasField(INDEX)) { if (_isReply) { _mainStruct = _dialog.GetReplyNode((int)gffStruct[INDEX]); } else { _mainStruct = _dialog.GetEntryNode((int)gffStruct[INDEX]); } } }