Inheritance: DialogueNode
コード例 #1
0
        private void PrintGotoNode(GotoDialogueNode pGotoDialogueNode)
        {
            Indentation();
            _output.Append("GOTO " + pGotoDialogueNode.linkedNode + "\n");

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

            SwitchOnNode(nextNode);
        }
コード例 #2
0
ファイル: DialogueScriptLoader.cs プロジェクト: defc0n1/Grimm
        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);
        }
コード例 #3
0
        private void PrintGotoNode(GotoDialogueNode pGotoDialogueNode)
        {
            Indentation();
            _output.Append("GOTO " + pGotoDialogueNode.linkedNode + "\n");

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