예제 #1
0
        public Answer PositiveAnswer = Answer.Yes; //"Нет"

        public DialogNode(string question, DialogNode positiveNode, DialogNode negativeNode, Answer positiveAnswer)
        {
            Question       = question;
            PositiveNode   = positiveNode;
            NegativeNode   = negativeNode;
            PositiveAnswer = positiveAnswer;
        }
예제 #2
0
 public DialogTree(DialogNode current)
 {
     Current = current;
 }
예제 #3
0
 public void PushAnswer(Answer answer)
 {
     Current = Current.CheckAnswer(answer);
 }
예제 #4
0
 public DialogTreeBuilderNode(DialogNode node, int id)
 {
     Node = node;
     Id   = id;
 }