public void MergeFrom(ClientVaultItem other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Icon.Length != 0) { Icon = other.Icon; } if (other.Prefab.Length != 0) { Prefab = other.Prefab; } if (other.Rarity != 0L) { Rarity = other.Rarity; } if (other.Description.Length != 0) { Description = other.Description; } if (other.ShowInVaultItemMenu != false) { ShowInVaultItemMenu = other.ShowInVaultItemMenu; } if (other.Deletable != false) { Deletable = other.Deletable; } if (other.ShowInRewardsFlow != false) { ShowInRewardsFlow = other.ShowInRewardsFlow; } if (other.color_ != null) { if (color_ == null) { Color = new global::WUProtos.Data.Color(); } Color.MergeFrom(other.Color); } if (other.Background.Length != 0) { Background = other.Background; } if (other.Ordering != 0) { Ordering = other.Ordering; } if (other.rewardSound_ != null) { if (rewardSound_ == null) { RewardSound = new global::WUProtos.Data.SoundConfig(); } RewardSound.MergeFrom(other.RewardSound); } if (other.RewardSoundPriority != 0) { RewardSoundPriority = other.RewardSoundPriority; } if (other.SpineAnimatedIcon.Length != 0) { SpineAnimatedIcon = other.SpineAnimatedIcon; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Icon.Length != 0) { hash ^= Icon.GetHashCode(); } if (Prefab.Length != 0) { hash ^= Prefab.GetHashCode(); } if (Rarity != 0L) { hash ^= Rarity.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (ShowInVaultItemMenu != false) { hash ^= ShowInVaultItemMenu.GetHashCode(); } if (Deletable != false) { hash ^= Deletable.GetHashCode(); } if (ShowInRewardsFlow != false) { hash ^= ShowInRewardsFlow.GetHashCode(); } if (color_ != null) { hash ^= Color.GetHashCode(); } if (Background.Length != 0) { hash ^= Background.GetHashCode(); } if (Ordering != 0) { hash ^= Ordering.GetHashCode(); } if (rewardSound_ != null) { hash ^= RewardSound.GetHashCode(); } if (RewardSoundPriority != 0) { hash ^= RewardSoundPriority.GetHashCode(); } if (SpineAnimatedIcon.Length != 0) { hash ^= SpineAnimatedIcon.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }