/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Inline != null) { hashCode = hashCode * 59 + Inline.GetHashCode(); } if (Moveable != null) { hashCode = hashCode * 59 + Moveable.GetHashCode(); } if (Disabled != null) { hashCode = hashCode * 59 + Disabled.GetHashCode(); } if (Deletable != null) { hashCode = hashCode * 59 + Deletable.GetHashCode(); } if (Editable != null) { hashCode = hashCode * 59 + Editable.GetHashCode(); } if (Comment != null) { hashCode = hashCode * 59 + Comment.GetHashCode(); } if (Mutation != null) { hashCode = hashCode * 59 + Mutation.GetHashCode(); } if (Children != null) { hashCode = hashCode * 59 + Children.GetHashCode(); } if (Fields != null) { hashCode = hashCode * 59 + Fields.GetHashCode(); } if (Next != null) { hashCode = hashCode * 59 + Next.GetHashCode(); } return(hashCode); } }
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); }