public void MergeFrom(DiskEncounterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::POGOProtos.Data.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.captureProbability_ != null)
     {
         if (captureProbability_ == null)
         {
             captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
         }
         CaptureProbability.MergeFrom(other.CaptureProbability);
     }
     if (other.ActiveItem != 0)
     {
         ActiveItem = other.ActiveItem;
     }
     if (other.ArplusAttemptsUntilFlee != 0)
     {
         ArplusAttemptsUntilFlee = other.ArplusAttemptsUntilFlee;
     }
 }
Exemplo n.º 2
0
 public void MergeFrom(EncounterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.wildPokemon_ != null)
     {
         if (wildPokemon_ == null)
         {
             wildPokemon_ = new global::POGOProtos.Map.Pokemon.WildPokemon();
         }
         WildPokemon.MergeFrom(other.WildPokemon);
     }
     if (other.Background != 0)
     {
         Background = other.Background;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.captureProbability_ != null)
     {
         if (captureProbability_ == null)
         {
             captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
         }
         CaptureProbability.MergeFrom(other.CaptureProbability);
     }
     if (other.ActiveItem != 0)
     {
         ActiveItem = other.ActiveItem;
     }
 }
Exemplo n.º 3
0
 public void MergeFrom(QuestEncounterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.pokemon_ != null)
     {
         if (pokemon_ == null)
         {
             pokemon_ = new global::POGOProtos.Map.Pokemon.WildPokemon();
         }
         Pokemon.MergeFrom(other.Pokemon);
     }
     if (other.captureProbability_ != null)
     {
         if (captureProbability_ == null)
         {
             captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
         }
         CaptureProbability.MergeFrom(other.CaptureProbability);
     }
     if (other.ActiveItem != 0)
     {
         ActiveItem = other.ActiveItem;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(EncounterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.wildPokemon_ != null)
     {
         if (wildPokemon_ == null)
         {
             wildPokemon_ = new global::POGOProtos.Map.Pokemon.WildPokemon();
         }
         WildPokemon.MergeFrom(other.WildPokemon);
     }
     if (other.Background != 0)
     {
         Background = other.Background;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.captureProbability_ != null)
     {
         if (captureProbability_ == null)
         {
             captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
         }
         CaptureProbability.MergeFrom(other.CaptureProbability);
     }
     if (other.ActiveItem != 0)
     {
         ActiveItem = other.ActiveItem;
     }
     if (other.ArplusAttemptsUntilFlee != 0)
     {
         ArplusAttemptsUntilFlee = other.ArplusAttemptsUntilFlee;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 5
0
 public void MergeFrom(UseItemEncounterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.captureProbability_ != null)
     {
         if (captureProbability_ == null)
         {
             captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
         }
         CaptureProbability.MergeFrom(other.CaptureProbability);
     }
     if (other.ActiveItem != 0)
     {
         ActiveItem = other.ActiveItem;
     }
 }