public void MergeFrom(GymMembership other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::POGOProtos.Data.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.trainerPublicProfile_ != null)
     {
         if (trainerPublicProfile_ == null)
         {
             trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
         }
         TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile);
     }
     if (other.trainingPokemon_ != null)
     {
         if (trainingPokemon_ == null)
         {
             trainingPokemon_ = new global::POGOProtos.Data.PokemonData();
         }
         TrainingPokemon.MergeFrom(other.TrainingPokemon);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (activePokemon_ != null)
            {
                hash ^= ActivePokemon.GetHashCode();
            }
            if (trainerPublicProfile_ != null)
            {
                hash ^= TrainerPublicProfile.GetHashCode();
            }
            hash ^= reversePokemon_.GetHashCode();
            hash ^= defeatedPokemon_.GetHashCode();
            hash ^= lobbyPokemon_.GetHashCode();
            if (DamageDealt != 0)
            {
                hash ^= DamageDealt.GetHashCode();
            }
            if (SuperEffectiveChargeMove != false)
            {
                hash ^= SuperEffectiveChargeMove.GetHashCode();
            }
            if (WeatherBoosted != false)
            {
                hash ^= WeatherBoosted.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
 public void MergeFrom(BattleParticipant other)
 {
     if (other == null)
     {
         return;
     }
     if (other.activePokemon_ != null)
     {
         if (activePokemon_ == null)
         {
             activePokemon_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActivePokemon.MergeFrom(other.ActivePokemon);
     }
     if (other.trainerPublicProfile_ != null)
     {
         if (trainerPublicProfile_ == null)
         {
             trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
         }
         TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile);
     }
     reversePokemon_.Add(other.reversePokemon_);
     defeatedPokemon_.Add(other.defeatedPokemon_);
 }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (activePokemon_ != null)
            {
                hash ^= ActivePokemon.GetHashCode();
            }
            if (trainerPublicProfile_ != null)
            {
                hash ^= TrainerPublicProfile.GetHashCode();
            }
            hash ^= reversePokemon_.GetHashCode();
            hash ^= defeatedPokemon_.GetHashCode();
            return(hash);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (trainerPublicProfile_ != null)
            {
                hash ^= TrainerPublicProfile.GetHashCode();
            }
            if (trainingPokemon_ != null)
            {
                hash ^= TrainingPokemon.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(BattleParticipant other)
 {
     if (other == null)
     {
         return;
     }
     if (other.activePokemon_ != null)
     {
         if (activePokemon_ == null)
         {
             activePokemon_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActivePokemon.MergeFrom(other.ActivePokemon);
     }
     if (other.trainerPublicProfile_ != null)
     {
         if (trainerPublicProfile_ == null)
         {
             trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
         }
         TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile);
     }
     reversePokemon_.Add(other.reversePokemon_);
     defeatedPokemon_.Add(other.defeatedPokemon_);
     lobbyPokemon_.Add(other.lobbyPokemon_);
     if (other.DamageDealt != 0)
     {
         DamageDealt = other.DamageDealt;
     }
     if (other.SuperEffectiveChargeMove != false)
     {
         SuperEffectiveChargeMove = other.SuperEffectiveChargeMove;
     }
     if (other.WeatherBoosted != false)
     {
         WeatherBoosted = other.WeatherBoosted;
     }
     if (other.HighestFriendshipMilestone != 0)
     {
         HighestFriendshipMilestone = other.HighestFriendshipMilestone;
     }
     friendCodename_.Add(other.friendCodename_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }