Пример #1
0
 protected override bool TestRunInt(Slate slate)
 {
     if (value1.GetValue(slate) > value2.GetValue(slate))
     {
         if (node != null)
         {
             return(node.TestRun(slate));
         }
         return(true);
     }
     return(false);
 }
 public bool CanRun(Slate slate)
 {
     try
     {
         return(root.TestRun(slate.DeepCopy()));
     }
     catch (Exception arg)
     {
         Log.Error("Error while checking if can generate quest: " + arg);
     }
     return(false);
 }
 protected override bool TestRunInt(Slate slate)
 {
     if (value.GetValue(slate) ?? true)
     {
         if (node != null)
         {
             return(node.TestRun(slate));
         }
         return(true);
     }
     if (elseNode != null)
     {
         return(elseNode.TestRun(slate));
     }
     return(true);
 }
Пример #4
0
 public bool CanRun(Slate slate)
 {
     return(root.TestRun(slate.DeepCopy()));
 }