Beispiel #1
0
        private void PrintCancelDialogueNode(CancelDialogueNode pCancelNode)
        {
            Indentation();
            _output.Append("CANCEL " + pCancelNode.handle + "\n");

            DialogueNode nextNode = _dialogueRunner.GetDialogueNode(_conversation, pCancelNode.nextNode);

            SwitchOnNode(nextNode);
        }
Beispiel #2
0
        DialogueNode VisitCancelDialogueNode(DialogueNode pPrevious)
        {
                        #if DEBUG_WRITE
            Console.WriteLine("VisitCancelDialogueNode()");
                        #endif

            match(Token.TokenType.CANCEL);
            Token handleNameToken = match(Token.TokenType.NAME);

            CancelDialogueNode n = _dialogueRunner.Create <CancelDialogueNode>(_conversationName, _language, (_nodeCounter++).ToString() + "(cancel)");
            n.handle = handleNameToken.getTokenString();

            AddLinkFromPreviousNode(pPrevious, n);
            return(n);
        }
        private void PrintCancelDialogueNode(CancelDialogueNode pCancelNode)
        {
            Indentation();
            _output.Append("CANCEL " + pCancelNode.handle + "\n");

            DialogueNode nextNode = _dialogueRunner.GetDialogueNode(_conversation, pCancelNode.nextNode);
            SwitchOnNode(nextNode);
        }