Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public DialogTree(DialogNode current)
 {
     Current = current;
 }
Exemplo n.º 3
0
 public void PushAnswer(Answer answer)
 {
     Current = Current.CheckAnswer(answer);
 }
Exemplo n.º 4
0
 public DialogTreeBuilderNode(DialogNode node, int id)
 {
     Node = node;
     Id   = id;
 }