public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 18: { if (fortSettings_ == null) { fortSettings_ = new global::PokemonGoDesktop.API.Proto.FortSettings(); } input.ReadMessage(fortSettings_); break; } case 26: { if (mapSettings_ == null) { mapSettings_ = new global::PokemonGoDesktop.API.Proto.MapSettings(); } input.ReadMessage(mapSettings_); break; } case 34: { if (levelSettings_ == null) { levelSettings_ = new global::PokemonGoDesktop.API.Proto.LevelSettings(); } input.ReadMessage(levelSettings_); break; } case 42: { if (inventorySettings_ == null) { inventorySettings_ = new global::PokemonGoDesktop.API.Proto.InventorySettings(); } input.ReadMessage(inventorySettings_); break; } case 50: { MinimumClientVersion = input.ReadString(); break; } } } }
public void MergeFrom(GlobalSettings other) { if (other == null) { return; } if (other.fortSettings_ != null) { if (fortSettings_ == null) { fortSettings_ = new global::PokemonGoDesktop.API.Proto.FortSettings(); } FortSettings.MergeFrom(other.FortSettings); } if (other.mapSettings_ != null) { if (mapSettings_ == null) { mapSettings_ = new global::PokemonGoDesktop.API.Proto.MapSettings(); } MapSettings.MergeFrom(other.MapSettings); } if (other.levelSettings_ != null) { if (levelSettings_ == null) { levelSettings_ = new global::PokemonGoDesktop.API.Proto.LevelSettings(); } LevelSettings.MergeFrom(other.LevelSettings); } if (other.inventorySettings_ != null) { if (inventorySettings_ == null) { inventorySettings_ = new global::PokemonGoDesktop.API.Proto.InventorySettings(); } InventorySettings.MergeFrom(other.InventorySettings); } if (other.MinimumClientVersion.Length != 0) { MinimumClientVersion = other.MinimumClientVersion; } }