private void PrintTimedWaitDialogueNode(TimedWaitDialogueNode pTimedWaitDialogueNode) { Indentation(); _output.Append("TimedWaitDialogueNode\n"); DialogueNode nextNode = _dialogueRunner.GetDialogueNode(_conversation, pTimedWaitDialogueNode.nextNode); SwitchOnNode(nextNode); }
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); }