Пример #1
0
 public static float GetValue(Formula formula, DateTimeOffset from, int iters, float delta, List <EnergyEffect> devices, Location location, bool ideal = false)
 {
     if (formula != null)
     {
         return(formula.GetValue(from, iters, delta, devices, location, ideal));
     }
     return(ConstantFormula.GetConstantValue(from, iters, delta, devices, location, ideal));
 }
Пример #2
0
 public static float GetRate(Formula formula, List <EnergyEffect> devices, Location location, bool ideal = false)
 {
     if (formula != null)
     {
         return(formula.GetRate(devices, location, ideal));
     }
     return(ConstantFormula.GetConstantRate(devices, location, ideal));
 }