public bool TestRun(Slate slate) { try { if (slate.TryGet <Action <QuestNode, Slate> >("testRunCallback", out var var)) { var?.Invoke(this, slate); } return(TestRunInt(slate)); } catch (Exception ex) { Log.Error(string.Concat("Exception test running ", GetType().Name, ": ", ex, "\n\nSlate vars:\n", slate.ToString())); return(false); } finally { } }
public bool TestRun(Slate slate) { try { if (slate.TryGet("testRunCallback", out Action <QuestNode, Slate> var)) { var?.Invoke(this, slate); } return(TestRunInt(slate)); } catch (Exception ex) { Log.Error("Exception test running " + GetType().Name + ": " + ex + "\n\nSlate vars:\n" + slate.ToString()); return(false); } }