コード例 #1
0
        private void PrintTimedWaitDialogueNode(TimedWaitDialogueNode pTimedWaitDialogueNode)
        {
            Indentation();

            _output.Append("TimedWaitDialogueNode\n");

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

            SwitchOnNode(nextNode);
        }
コード例 #2
0
ファイル: DialogueScriptLoader.cs プロジェクト: defc0n1/Grimm
        private TimedWaitDialogueNode VisitTimedWaitDialogueNode(DialogueNode pPrevious)
        {
                        #if DEBUG_WRITE
            Console.WriteLine("TimedWaitDialogueNode()");
                        #endif

            match(Token.TokenType.WAIT);
            Token time = match(Token.TokenType.NUMBER);

            TimedWaitDialogueNode node = _dialogueRunner.Create <TimedWaitDialogueNode>(_conversationName, _language, (_nodeCounter++) + " (timed wait node)");
            node.timer = node.timerStartValue = Convert.ToSingle(time.getTokenString());

                        #if DEBUG_WRITE
            Console.WriteLine("Added TimedWaitDialogueNode() with name '" + node.name + "'");
                        #endif

            AddLinkFromPreviousNode(pPrevious, node);

            return(node);
        }
コード例 #3
0
        private void PrintTimedWaitDialogueNode(TimedWaitDialogueNode pTimedWaitDialogueNode)
        {
            Indentation();

            _output.Append("TimedWaitDialogueNode\n");

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