Example #1
0
        public object Visit_DialogueChoiceExpression(DialogueChoiceExpression choiceMember)
        {
            if ((bool)choiceMember.Condition.Accept(this))
            {
                DialogueData   dialogue = Current["BlockData"] as DialogueData;
                DialogueChoice choice   = new DialogueChoice();

                string text = (string)choiceMember.Text.Accept(this);
                string next = (string)choiceMember.Next.Accept(this);

                choice.SetOption(text, next);

                dialogue.AddChoice(choice);
            }

            return(0);
        }
Example #2
0
 public void AddChoice(DialogueChoice choice)
 {
     Choices.Add(choice);
 }