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;
                }
                }
            }
        }
Exemplo n.º 2
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;
                }
                }
            }
        }