Esempio n. 1
0
        protected void StartNextNode()
        {
            if (nextNode == "")
            {
                throw new GrimmException("No nextNode in dialogue node '" + name + "' in conversation '" + conversation + "'");
            }
            DialogueNode n = _dialogueRunner.GetDialogueNode(this.conversation, nextNode);

            //_dialogueRunner.logger.Log("DialogueNode '" + name + "' is starting '" + n.name + "'" + " of type " + n.GetType().ToString() + " in conversation " + n.conversation);
            //Console.WriteLine("DialogueNode '" + name + "' is starting '" + n.name + "'");
            n.Start();
        }
Esempio n. 2
0
        public void PrintConversation(string pConversation)
        {
            _conversation     = pConversation;
            _indentationLevel = 0;
            DialogueNode startNode = _dialogueRunner.GetDialogueNode(pConversation, "__Start__");

            _output = new StringBuilder();
            SwitchOnNode(startNode);
            Console.WriteLine("Printing conversation '" + pConversation + "':");
            Console.WriteLine(_output.ToString());
        }