Пример #1
0
        public DynParam(Func <Effect, Game, TOut> getter, EvaluateAt evaluateAt = EvaluateAt.OnInit)
        {
            _getter     = getter;
            _evaluateAt = evaluateAt;

            _value = new Trackable <TOut>();
        }
Пример #2
0
 protected DynParam <T> P <T>(Func <Effect, T> getter, EvaluateAt evaluateAt = EvaluateAt.OnInit)
 {
     return(new DynParam <T>((e, g) => getter(e), evaluateAt));
 }
Пример #3
0
 protected DynParam <T> P <T>(Func <Effect, Game, T> getter, EvaluateAt evaluateAt = EvaluateAt.OnInit)
 {
     return(new DynParam <T>(getter, evaluateAt));
 }