private void PrintGotoNode(GotoDialogueNode pGotoDialogueNode) { Indentation(); _output.Append("GOTO " + pGotoDialogueNode.linkedNode + "\n"); DialogueNode nextNode = _dialogueRunner.GetDialogueNode(_conversation, pGotoDialogueNode.nextNode); SwitchOnNode(nextNode); }
private GotoDialogueNode VisitGotoDialogueNode(DialogueNode pPrevious) { #if DEBUG_WRITE Console.WriteLine("GotoDialogueNode()"); #endif match(Token.TokenType.GOTO); Token targetNameToken = match(Token.TokenType.NAME); GotoDialogueNode n = _dialogueRunner.Create <GotoDialogueNode>(_conversationName, _language, (_nodeCounter++) + " (goto)"); n.linkedNode = targetNameToken.getTokenString(); #if DEBUG_WRITE Console.WriteLine("Added GotoDialogueNode() with name '" + n.name + "'"); #endif AddLinkFromPreviousNode(pPrevious, n); return(n); }