private void PrintInterruptDialogueNode(InterruptDialogueNode pInterruptNode) { Indentation(); _output.Append("INTERRUPT " + pInterruptNode.interruptingConversation + "\n"); DialogueNode nextNode = _dialogueRunner.GetDialogueNode(_conversation, pInterruptNode.nextNode); SwitchOnNode(nextNode); }
private InterruptDialogueNode VisitInterruptDialogueNode(DialogueNode pPrevious) { #if DEBUG_WRITE Console.WriteLine("InterruptDialogueNode()"); #endif match(Token.TokenType.INTERRUPT); string interruptingConversation = GetAStringFromNextToken(false, false); InterruptDialogueNode n = _dialogueRunner.Create <InterruptDialogueNode>(_conversationName, _language, (_nodeCounter++) + " (interrupt commando)"); n.interruptingConversation = interruptingConversation; #if DEBUG_WRITE Console.WriteLine("Added InterruptDialogueNode() with name '" + n.name + "'"); #endif AddLinkFromPreviousNode(pPrevious, n); return(n); }