Ejemplo n.º 1
0
        private void PrintTimedWaitDialogueNode(TimedWaitDialogueNode pTimedWaitDialogueNode)
        {
            Indentation();

            _output.Append("TimedWaitDialogueNode\n");

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

            SwitchOnNode(nextNode);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        private void PrintTimedWaitDialogueNode(TimedWaitDialogueNode pTimedWaitDialogueNode)
        {
            Indentation();

            _output.Append("TimedWaitDialogueNode\n");

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