Exemplo n.º 1
0
 /// <summary>
 ///     Clones this instance.
 /// </summary>
 /// <returns></returns>
 public object Clone()
 {
     var version1 = new ModuleVersion();
     version1._major = _major;
     version1._minor = _minor;
     version1._build = _build;
     version1._revision = _revision;
     return version1;
 }
Exemplo n.º 2
0
 private GaBSettings(OldSettings.GaBSettings oldSettings)
 {
     ConfigVersion = GarrisonButler.Version;
     ActivateBuildings = oldSettings.ActivateBuildings;
     BuildingsSettings = oldSettings.BuildingsSettings.Select(b => b.FromOld()).ToList();
     CompletedMissions = oldSettings.CompletedMissions;
     ConfigVersion = oldSettings.ConfigVersion.FromOld();
     DailySettings = oldSettings.DailySettings.Select(d => d.FromOld()).ToList();
     //DeleteCoffee = oldSettings.DeleteCoffee;
     //DeleteMiningPick = oldSettings.DeleteMiningPick;
     ForceJunkSell = oldSettings.ForceJunkSell;
     GarrisonCache = oldSettings.GarrisonCache;
     HbRelogMode = oldSettings.HBRelogMode;
     HarvestGarden = oldSettings.HarvestGarden;
     HarvestMine = oldSettings.HarvestMine;
     MailItems = oldSettings.MailItems.Select(m => m.FromOld()).ToList();
     RetrieveMail = oldSettings.RetrieveMail;
     SalvageCrates = oldSettings.SalvageCrates;
     SendMail = oldSettings.SendMail;
     StartMissions = oldSettings.StartMissions;
     TimeMinBetweenRun = oldSettings.TimeMinBetweenRun;
     UseCoffee = oldSettings.UseCoffee;
     UseGarrisonHearthstone = oldSettings.UseGarrisonHearthstone;
     UseMiningPick = oldSettings.UseMiningPick;
 }