Exemplo n.º 1
0
 public void MergeFrom(ChamberTemplate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.unlockRequirements_ != null)
     {
         if (unlockRequirements_ == null)
         {
             UnlockRequirements = new global::WUProtos.Data.Requirements();
         }
         UnlockRequirements.MergeFrom(other.UnlockRequirements);
     }
     if (other.visibilityRequirements_ != null)
     {
         if (visibilityRequirements_ == null)
         {
             VisibilityRequirements = new global::WUProtos.Data.Requirements();
         }
         VisibilityRequirements.MergeFrom(other.VisibilityRequirements);
     }
     if (other.MinRunestoneLevel != 0)
     {
         MinRunestoneLevel = other.MinRunestoneLevel;
     }
     if (other.MaxRunestoneLevel != 0)
     {
         MaxRunestoneLevel = other.MaxRunestoneLevel;
     }
     if (other.PlayerCap != 0)
     {
         PlayerCap = other.PlayerCap;
     }
     if (other.DurationMs != 0L)
     {
         DurationMs = other.DurationMs;
     }
     if (other.KnockoutTimeMs != 0L)
     {
         KnockoutTimeMs = other.KnockoutTimeMs;
     }
     playerCountMultipliers_.Add(other.playerCountMultipliers_);
     if (other.BaseChamberRating != 0)
     {
         BaseChamberRating = other.BaseChamberRating;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public void MergeFrom(CollectionFamily other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.FamilyType != 0)
     {
         FamilyType = other.FamilyType;
     }
     items_.Add(other.items_);
     levels_.Add(other.levels_);
     pages_.Add(other.pages_);
     if (other.FamilyRuneName.Length != 0)
     {
         FamilyRuneName = other.FamilyRuneName;
     }
     if (other.FamilyRankTableId.Length != 0)
     {
         FamilyRankTableId = other.FamilyRankTableId;
     }
     returnedRewards_.Add(other.returnedRewards_);
     runeId_.Add(other.runeId_);
     apexItems_.Add(other.apexItems_);
     if (other.unlockRequirements_ != null)
     {
         if (unlockRequirements_ == null)
         {
             UnlockRequirements = new global::WUProtos.Data.Requirements();
         }
         UnlockRequirements.MergeFrom(other.UnlockRequirements);
     }
     if (other.SubfeatureType != 0)
     {
         SubfeatureType = other.SubfeatureType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }