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); }
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); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (FamilyId.Length != 0) { hash ^= FamilyId.GetHashCode(); } if (ShardCount != 0) { hash ^= ShardCount.GetHashCode(); } if (Rarity != 0) { hash ^= Rarity.GetHashCode(); } if (oneTimeRewards_ != null) { hash ^= OneTimeRewards.GetHashCode(); } if (PageId.Length != 0) { hash ^= PageId.GetHashCode(); } if (unlockRequirements_ != null) { hash ^= UnlockRequirements.GetHashCode(); } hash ^= shardCounts_.GetHashCode(); if (StickerDisabled != false) { hash ^= StickerDisabled.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Xp != 0L) { hash ^= Xp.GetHashCode(); } hash ^= returnedRewards_.GetHashCode(); if (oneTimeRewards_ != null) { hash ^= OneTimeRewards.GetHashCode(); } if (LevelDesc.Length != 0) { hash ^= LevelDesc.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }