public DynParam(Func <Effect, Game, TOut> getter, EvaluateAt evaluateAt = EvaluateAt.OnInit) { _getter = getter; _evaluateAt = evaluateAt; _value = new Trackable <TOut>(); }
protected DynParam <T> P <T>(Func <Effect, T> getter, EvaluateAt evaluateAt = EvaluateAt.OnInit) { return(new DynParam <T>((e, g) => getter(e), evaluateAt)); }
protected DynParam <T> P <T>(Func <Effect, Game, T> getter, EvaluateAt evaluateAt = EvaluateAt.OnInit) { return(new DynParam <T>(getter, evaluateAt)); }