예제 #1
0
 public void MergeFrom(GlobalSettings other)
 {
     if (other == null)
     {
         return;
     }
     if (other.fortSettings_ != null)
     {
         if (fortSettings_ == null)
         {
             fortSettings_ = new global::POGOProtos.Settings.FortSettings();
         }
         FortSettings.MergeFrom(other.FortSettings);
     }
     if (other.mapSettings_ != null)
     {
         if (mapSettings_ == null)
         {
             mapSettings_ = new global::POGOProtos.Settings.MapSettings();
         }
         MapSettings.MergeFrom(other.MapSettings);
     }
     if (other.levelSettings_ != null)
     {
         if (levelSettings_ == null)
         {
             levelSettings_ = new global::POGOProtos.Settings.LevelSettings();
         }
         LevelSettings.MergeFrom(other.LevelSettings);
     }
     if (other.inventorySettings_ != null)
     {
         if (inventorySettings_ == null)
         {
             inventorySettings_ = new global::POGOProtos.Settings.InventorySettings();
         }
         InventorySettings.MergeFrom(other.InventorySettings);
     }
     if (other.MinimumClientVersion.Length != 0)
     {
         MinimumClientVersion = other.MinimumClientVersion;
     }
     if (other.gpsSettings_ != null)
     {
         if (gpsSettings_ == null)
         {
             gpsSettings_ = new global::POGOProtos.Settings.GpsSettings();
         }
         GpsSettings.MergeFrom(other.GpsSettings);
     }
     if (other.festivalSettings_ != null)
     {
         if (festivalSettings_ == null)
         {
             festivalSettings_ = new global::POGOProtos.Settings.FestivalSettings();
         }
         FestivalSettings.MergeFrom(other.FestivalSettings);
     }
     if (other.eventSettings_ != null)
     {
         if (eventSettings_ == null)
         {
             eventSettings_ = new global::POGOProtos.Settings.EventSettings();
         }
         EventSettings.MergeFrom(other.EventSettings);
     }
     if (other.MaxPokemonTypes != 0)
     {
         MaxPokemonTypes = other.MaxPokemonTypes;
     }
     if (other.sfidaSettings_ != null)
     {
         if (sfidaSettings_ == null)
         {
             sfidaSettings_ = new global::POGOProtos.Settings.SfidaSettings();
         }
         SfidaSettings.MergeFrom(other.SfidaSettings);
     }
     if (other.newsSettings_ != null)
     {
         if (newsSettings_ == null)
         {
             newsSettings_ = new global::POGOProtos.Settings.NewsSettings();
         }
         NewsSettings.MergeFrom(other.NewsSettings);
     }
     if (other.translationSettings_ != null)
     {
         if (translationSettings_ == null)
         {
             translationSettings_ = new global::POGOProtos.Settings.TranslationSettings();
         }
         TranslationSettings.MergeFrom(other.TranslationSettings);
     }
     if (other.passcodeSettings_ != null)
     {
         if (passcodeSettings_ == null)
         {
             passcodeSettings_ = new global::POGOProtos.Settings.PasscodeSettings();
         }
         PasscodeSettings.MergeFrom(other.PasscodeSettings);
     }
 }
 public void MergeFrom(GlobalSettings other)
 {
     if (other == null)
     {
         return;
     }
     if (other.fortSettings_ != null)
     {
         if (fortSettings_ == null)
         {
             fortSettings_ = new global::POGOProtos.Settings.FortSettings();
         }
         FortSettings.MergeFrom(other.FortSettings);
     }
     if (other.mapSettings_ != null)
     {
         if (mapSettings_ == null)
         {
             mapSettings_ = new global::POGOProtos.Settings.MapSettings();
         }
         MapSettings.MergeFrom(other.MapSettings);
     }
     if (other.levelSettings_ != null)
     {
         if (levelSettings_ == null)
         {
             levelSettings_ = new global::POGOProtos.Settings.LevelSettings();
         }
         LevelSettings.MergeFrom(other.LevelSettings);
     }
     if (other.inventorySettings_ != null)
     {
         if (inventorySettings_ == null)
         {
             inventorySettings_ = new global::POGOProtos.Settings.InventorySettings();
         }
         InventorySettings.MergeFrom(other.InventorySettings);
     }
     if (other.MinimumClientVersion.Length != 0)
     {
         MinimumClientVersion = other.MinimumClientVersion;
     }
     if (other.gpsSettings_ != null)
     {
         if (gpsSettings_ == null)
         {
             gpsSettings_ = new global::POGOProtos.Settings.GpsSettings();
         }
         GpsSettings.MergeFrom(other.GpsSettings);
     }
     if (other.festivalSettings_ != null)
     {
         if (festivalSettings_ == null)
         {
             festivalSettings_ = new global::POGOProtos.Settings.FestivalSettings();
         }
         FestivalSettings.MergeFrom(other.FestivalSettings);
     }
     if (other.eventSettings_ != null)
     {
         if (eventSettings_ == null)
         {
             eventSettings_ = new global::POGOProtos.Settings.EventSettings();
         }
         EventSettings.MergeFrom(other.EventSettings);
     }
     if (other.MaxPokemonTypes != 0)
     {
         MaxPokemonTypes = other.MaxPokemonTypes;
     }
     if (other.sfidaSettings_ != null)
     {
         if (sfidaSettings_ == null)
         {
             sfidaSettings_ = new global::POGOProtos.Settings.SfidaSettings();
         }
         SfidaSettings.MergeFrom(other.SfidaSettings);
     }
     if (other.newsSettings_ != null)
     {
         if (newsSettings_ == null)
         {
             newsSettings_ = new global::POGOProtos.Settings.NewsSettings();
         }
         NewsSettings.MergeFrom(other.NewsSettings);
     }
     if (other.translationSettings_ != null)
     {
         if (translationSettings_ == null)
         {
             translationSettings_ = new global::POGOProtos.Settings.TranslationSettings();
         }
         TranslationSettings.MergeFrom(other.TranslationSettings);
     }
     if (other.passcodeSettings_ != null)
     {
         if (passcodeSettings_ == null)
         {
             passcodeSettings_ = new global::POGOProtos.Settings.PasscodeSettings();
         }
         PasscodeSettings.MergeFrom(other.PasscodeSettings);
     }
     if (other.notificationSettings_ != null)
     {
         if (notificationSettings_ == null)
         {
             notificationSettings_ = new global::POGOProtos.Settings.NotificationSettings();
         }
         NotificationSettings.MergeFrom(other.NotificationSettings);
     }
     clientAppBlacklist_.Add(other.clientAppBlacklist_);
     if (other.clientPerfSettings_ != null)
     {
         if (clientPerfSettings_ == null)
         {
             clientPerfSettings_ = new global::POGOProtos.Settings.ClientPerformanceSettings();
         }
         ClientPerfSettings.MergeFrom(other.ClientPerfSettings);
     }
     if (other.newsGlobalSettings_ != null)
     {
         if (newsGlobalSettings_ == null)
         {
             newsGlobalSettings_ = new global::POGOProtos.Settings.NewsGlobalSettings();
         }
         NewsGlobalSettings.MergeFrom(other.NewsGlobalSettings);
     }
     if (other.telemetryGlobalSettings_ != null)
     {
         if (telemetryGlobalSettings_ == null)
         {
             telemetryGlobalSettings_ = new global::POGOProtos.Settings.TelemetryGlobalSettings();
         }
         TelemetryGlobalSettings.MergeFrom(other.TelemetryGlobalSettings);
     }
     if (other.loginSettings_ != null)
     {
         if (loginSettings_ == null)
         {
             loginSettings_ = new global::POGOProtos.Settings.LoginSettings();
         }
         LoginSettings.MergeFrom(other.LoginSettings);
     }
     if (other.questGlobalSettings_ != null)
     {
         if (questGlobalSettings_ == null)
         {
             questGlobalSettings_ = new global::POGOProtos.Settings.QuestGlobalSettings();
         }
         QuestGlobalSettings.MergeFrom(other.QuestGlobalSettings);
     }
     if (other.socialSettings_ != null)
     {
         if (socialSettings_ == null)
         {
             socialSettings_ = new global::POGOProtos.Settings.SocialClientSettings();
         }
         SocialSettings.MergeFrom(other.SocialSettings);
     }
     if (other.tradingGlobalSettings_ != null)
     {
         if (tradingGlobalSettings_ == null)
         {
             tradingGlobalSettings_ = new global::POGOProtos.Settings.TradingGlobalSettings();
         }
         TradingGlobalSettings.MergeFrom(other.TradingGlobalSettings);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }