コード例 #1
0
 public void MergeFrom(Quests other)
 {
     if (other == null)
     {
         return;
     }
     quest_.Add(other.quest_);
     completedStoryQuest_.Add(other.completedStoryQuest_);
     questPokemonEncounter_.Add(other.questPokemonEncounter_);
     if (other.stampCard_ != null)
     {
         if (stampCard_ == null)
         {
             stampCard_ = new global::POGOProtos.Data.Quests.QuestStampCard();
         }
         StampCard.MergeFrom(other.StampCard);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #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 10: {
                    quest_.AddEntriesFrom(input, _repeated_quest_codec);
                    break;
                }

                case 18: {
                    completedStoryQuest_.AddEntriesFrom(input, _repeated_completedStoryQuest_codec);
                    break;
                }

                case 26: {
                    questPokemonEncounter_.AddEntriesFrom(input, _repeated_questPokemonEncounter_codec);
                    break;
                }

                case 34: {
                    if (stampCard_ == null)
                    {
                        stampCard_ = new global::POGOProtos.Data.Quests.QuestStampCard();
                    }
                    input.ReadMessage(stampCard_);
                    break;
                }
                }
            }
        }