コード例 #1
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);
     }
 }
コード例 #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;
     }
     if (other.ArplusAttemptsUntilFlee != 0)
     {
         ArplusAttemptsUntilFlee = other.ArplusAttemptsUntilFlee;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }