Beispiel #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);
     }
 }
Beispiel #2
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(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (wildPokemon_ == null)
                    {
                        wildPokemon_ = new global::POGOProtos.Map.Pokemon.WildPokemon();
                    }
                    input.ReadMessage(wildPokemon_);
                    break;
                }

                case 16: {
                    background_ = (global::POGOProtos.Networking.Responses.EncounterResponse.Types.Background)input.ReadEnum();
                    break;
                }

                case 24: {
                    status_ = (global::POGOProtos.Networking.Responses.EncounterResponse.Types.Status)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (captureProbability_ == null)
                    {
                        captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
                    }
                    input.ReadMessage(captureProbability_);
                    break;
                }

                case 40: {
                    activeItem_ = (global::POGOProtos.Inventory.Item.ItemId)input.ReadEnum();
                    break;
                }

                case 48: {
                    ArplusAttemptsUntilFlee = input.ReadInt32();
                    break;
                }
                }
            }
        }
Beispiel #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (wildPokemon_ == null)
                    {
                        wildPokemon_ = new global::POGOProtos.Map.Pokemon.WildPokemon();
                    }
                    input.ReadMessage(wildPokemon_);
                    break;
                }

                case 16: {
                    background_ = (global::POGOProtos.Networking.Responses.EncounterResponse.Types.Background)input.ReadEnum();
                    break;
                }

                case 24: {
                    status_ = (global::POGOProtos.Networking.Responses.EncounterResponse.Types.Status)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (captureProbability_ == null)
                    {
                        captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
                    }
                    input.ReadMessage(captureProbability_);
                    break;
                }
                }
            }
        }
Beispiel #5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    result_ = (global::POGOProtos.Networking.Responses.QuestEncounterResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (pokemon_ == null)
                    {
                        pokemon_ = new global::POGOProtos.Map.Pokemon.WildPokemon();
                    }
                    input.ReadMessage(pokemon_);
                    break;
                }

                case 26: {
                    if (captureProbability_ == null)
                    {
                        captureProbability_ = new global::POGOProtos.Data.Capture.CaptureProbability();
                    }
                    input.ReadMessage(captureProbability_);
                    break;
                }

                case 32: {
                    activeItem_ = (global::POGOProtos.Inventory.Item.ItemId)input.ReadEnum();
                    break;
                }
                }
            }
        }
 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);
 }