예제 #1
0
        public static int GetPowerRegen(Unit unit)
        {
            RegenCalculator powerRegenCalculator = RegenerationFormulas.PowerRegenCalculators[(int)unit.PowerType];

            if (powerRegenCalculator == null)
            {
                return(0);
            }
            return(powerRegenCalculator(unit));
        }
예제 #2
0
		public static void SetBasePowerCalculator(PowerType type, RegenCalculator calc)
		{
			BasePowerForLevelCalculators[(int)type] = calc;
		}
예제 #3
0
		public static void SetPowerRegenCalculator(PowerType type, RegenCalculator calc)
		{
			PowerRegenCalculators[(int)type] = calc;
		}
예제 #4
0
 public static void SetBasePowerCalculator(PowerType type, RegenCalculator calc)
 {
     RegenerationFormulas.BasePowerForLevelCalculators[(int)type] = calc;
 }
예제 #5
0
 public static void SetPowerRegenCalculator(PowerType type, RegenCalculator calc)
 {
     RegenerationFormulas.PowerRegenCalculators[(int)type] = calc;
 }
예제 #6
0
 public static void SetPowerRegenCalculator(PowerType type, RegenCalculator calc)
 {
     PowerRegenCalculators[(int)type] = calc;
 }