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); }
public void AddChoice(DialogueChoice choice) { Choices.Add(choice); }