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); }
public bool CanRun(Slate slate) { return(root.TestRun(slate.DeepCopy())); }