public static int GetPowerRegen(Unit unit) { RegenCalculator powerRegenCalculator = RegenerationFormulas.PowerRegenCalculators[(int)unit.PowerType]; if (powerRegenCalculator == null) { return(0); } return(powerRegenCalculator(unit)); }
public static void SetBasePowerCalculator(PowerType type, RegenCalculator calc) { BasePowerForLevelCalculators[(int)type] = calc; }
public static void SetPowerRegenCalculator(PowerType type, RegenCalculator calc) { PowerRegenCalculators[(int)type] = calc; }
public static void SetBasePowerCalculator(PowerType type, RegenCalculator calc) { RegenerationFormulas.BasePowerForLevelCalculators[(int)type] = calc; }
public static void SetPowerRegenCalculator(PowerType type, RegenCalculator calc) { RegenerationFormulas.PowerRegenCalculators[(int)type] = calc; }