Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (Player != 0)
            {
                hash ^= Player.GetHashCode();
            }
            hash ^= MoneyClaim.GetHashCode();
            if (clothesGoal_ != null)
            {
                hash ^= ClothesGoal.GetHashCode();
            }
            if (UnlockDesc.Length != 0)
            {
                hash ^= UnlockDesc.GetHashCode();
            }
            if (MornImage.Length != 0)
            {
                hash ^= MornImage.GetHashCode();
            }
            if (NoonImage.Length != 0)
            {
                hash ^= NoonImage.GetHashCode();
            }
            if (AfternoonImage.Length != 0)
            {
                hash ^= AfternoonImage.GetHashCode();
            }
            return(hash);
        }