コード例 #1
0
 public void MergeFrom(CollectionFamilyLevel other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Xp != 0L)
     {
         Xp = other.Xp;
     }
     returnedRewards_.Add(other.returnedRewards_);
     if (other.oneTimeRewards_ != null)
     {
         if (oneTimeRewards_ == null)
         {
             OneTimeRewards = new global::WUProtos.Data.Loot.LootCollection();
         }
         OneTimeRewards.MergeFrom(other.OneTimeRewards);
     }
     if (other.LevelDesc.Length != 0)
     {
         LevelDesc = other.LevelDesc;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
 public void MergeFrom(CollectionItem other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.FamilyId.Length != 0)
     {
         FamilyId = other.FamilyId;
     }
     if (other.ShardCount != 0)
     {
         ShardCount = other.ShardCount;
     }
     if (other.Rarity != 0)
     {
         Rarity = other.Rarity;
     }
     if (other.oneTimeRewards_ != null)
     {
         if (oneTimeRewards_ == null)
         {
             OneTimeRewards = new global::WUProtos.Data.Loot.LootCollection();
         }
         OneTimeRewards.MergeFrom(other.OneTimeRewards);
     }
     if (other.PageId.Length != 0)
     {
         PageId = other.PageId;
     }
     if (other.unlockRequirements_ != null)
     {
         if (unlockRequirements_ == null)
         {
             UnlockRequirements = new global::WUProtos.Data.Requirements();
         }
         UnlockRequirements.MergeFrom(other.UnlockRequirements);
     }
     shardCounts_.Add(other.shardCounts_);
     if (other.StickerDisabled != false)
     {
         StickerDisabled = other.StickerDisabled;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }