protected void _setFromOther(PremiumMods other) { Duration = other.Duration; TimeBuildUpdate = other.TimeBuildUpdate; TimeUnitProduction = other.TimeUnitProduction; ResourseProduction = other.ResourseProduction; ResourseMaxStorable = other.ResourseMaxStorable; PremiumBookmarkMod = other.PremiumBookmarkMod; PremiumNavigationMod = other.PremiumNavigationMod; }
/// <summary> /// устанавливает в текущую модель модификаторы для дальнейшего математического расчета /// </summary> /// <returns></returns> public static PremiumMods SetMathMods() { return(_mathMods ?? (_mathMods = new PremiumMods { TimeBuildUpdate = GameMathStats.PremiumBuildingTimeMod, TimeUnitProduction = GameMathStats.PremiumProductionUnitMod, ResourseProduction = GameMathStats.PremiumProductionMod, ResourseMaxStorable = GameMathStats.PremiumMaxStorable, PremiumBookmarkMod = GameMathStats.PremiumBookmarkMod, PremiumNavigationMod = GameMathStats.PremiumNavigationMod })); }
protected PremiumMods(PremiumMods other, int duration) { other.Duration = duration; _setFromOther(other); }
protected PremiumMods(PremiumMods other) { _setFromOther(other); }