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: {
                    QuestId = input.ReadString();
                    break;
                }

                case 16: {
                    pokemon_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

                case 24: {
                    encounterType_ = (global::POGOProtos.Enums.EncounterType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Esempio n. 2
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.Data.Logs.CompleteQuestPokemonEncounterLogEntry.Types.Result)input.ReadEnum();
                    break;
                }

                case 16: {
                    PokedexNumber = input.ReadInt32();
                    break;
                }

                case 24: {
                    CombatPoints = input.ReadInt32();
                    break;
                }

                case 33: {
                    PokemonId = input.ReadFixed64();
                    break;
                }

                case 42: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }

                case 48: {
                    encounterType_ = (global::POGOProtos.Enums.EncounterType)input.ReadEnum();
                    break;
                }
                }
            }
        }
 public void MergeFrom(QuestPokemonEncounter other)
 {
     if (other == null)
     {
         return;
     }
     if (other.QuestId.Length != 0)
     {
         QuestId = other.QuestId;
     }
     if (other.Pokemon != 0)
     {
         Pokemon = other.Pokemon;
     }
     if (other.EncounterType != 0)
     {
         EncounterType = other.EncounterType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 4
0
 public void MergeFrom(CompleteQuestPokemonEncounterLogEntry other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.PokedexNumber != 0)
     {
         PokedexNumber = other.PokedexNumber;
     }
     if (other.CombatPoints != 0)
     {
         CombatPoints = other.CombatPoints;
     }
     if (other.PokemonId != 0UL)
     {
         PokemonId = other.PokemonId;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     if (other.EncounterType != 0)
     {
         EncounterType = other.EncounterType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }