public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum(); break; } case 29: { ModelScale = input.ReadFloat(); break; } case 32: { type_ = (global::POGOProtos.Enums.PokemonType)input.ReadEnum(); break; } case 40: { type2_ = (global::POGOProtos.Enums.PokemonType)input.ReadEnum(); break; } case 50: { if (camera_ == null) { camera_ = new global::POGOProtos.Settings.Master.Pokemon.CameraAttributes(); } input.ReadMessage(camera_); break; } case 58: { if (encounter_ == null) { encounter_ = new global::POGOProtos.Settings.Master.Pokemon.EncounterAttributes(); } input.ReadMessage(encounter_); break; } case 66: { if (stats_ == null) { stats_ = new global::POGOProtos.Settings.Master.Pokemon.StatsAttributes(); } input.ReadMessage(stats_); break; } case 74: case 72: { quickMoves_.AddEntriesFrom(input, _repeated_quickMoves_codec); break; } case 82: case 80: { cinematicMoves_.AddEntriesFrom(input, _repeated_cinematicMoves_codec); break; } case 90: case 93: { animationTime_.AddEntriesFrom(input, _repeated_animationTime_codec); break; } case 98: case 96: { evolutionIds_.AddEntriesFrom(input, _repeated_evolutionIds_codec); break; } case 104: { EvolutionPips = input.ReadInt32(); break; } case 112: { rarity_ = (global::POGOProtos.Enums.PokemonRarity)input.ReadEnum(); break; } case 125: { PokedexHeightM = input.ReadFloat(); break; } case 133: { PokedexWeightKg = input.ReadFloat(); break; } case 136: { parentPokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum(); break; } case 149: { HeightStdDev = input.ReadFloat(); break; } case 157: { WeightStdDev = input.ReadFloat(); break; } case 165: { KmDistanceToHatch = input.ReadFloat(); break; } case 168: { familyId_ = (global::POGOProtos.Enums.PokemonFamilyId)input.ReadEnum(); break; } case 176: { CandyToEvolve = input.ReadInt32(); break; } } } }
public void MergeFrom(PokemonSettings other) { if (other == null) { return; } if (other.PokemonId != 0) { PokemonId = other.PokemonId; } if (other.ModelScale != 0F) { ModelScale = other.ModelScale; } if (other.Type != 0) { Type = other.Type; } if (other.Type2 != 0) { Type2 = other.Type2; } if (other.camera_ != null) { if (camera_ == null) { camera_ = new global::POGOProtos.Settings.Master.Pokemon.CameraAttributes(); } Camera.MergeFrom(other.Camera); } if (other.encounter_ != null) { if (encounter_ == null) { encounter_ = new global::POGOProtos.Settings.Master.Pokemon.EncounterAttributes(); } Encounter.MergeFrom(other.Encounter); } if (other.stats_ != null) { if (stats_ == null) { stats_ = new global::POGOProtos.Settings.Master.Pokemon.StatsAttributes(); } Stats.MergeFrom(other.Stats); } quickMoves_.Add(other.quickMoves_); cinematicMoves_.Add(other.cinematicMoves_); animationTime_.Add(other.animationTime_); evolutionIds_.Add(other.evolutionIds_); if (other.EvolutionPips != 0) { EvolutionPips = other.EvolutionPips; } if (other.Rarity != 0) { Rarity = other.Rarity; } if (other.PokedexHeightM != 0F) { PokedexHeightM = other.PokedexHeightM; } if (other.PokedexWeightKg != 0F) { PokedexWeightKg = other.PokedexWeightKg; } if (other.ParentPokemonId != 0) { ParentPokemonId = other.ParentPokemonId; } if (other.HeightStdDev != 0F) { HeightStdDev = other.HeightStdDev; } if (other.WeightStdDev != 0F) { WeightStdDev = other.WeightStdDev; } if (other.KmDistanceToHatch != 0F) { KmDistanceToHatch = other.KmDistanceToHatch; } if (other.FamilyId != 0) { FamilyId = other.FamilyId; } if (other.CandyToEvolve != 0) { CandyToEvolve = other.CandyToEvolve; } }