Пример #1
0
 public bool Equals(DressUpUnlockRulePB other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (ItemId != other.ItemId)
     {
         return(false);
     }
     if (ItemType != other.ItemType)
     {
         return(false);
     }
     if (Player != other.Player)
     {
         return(false);
     }
     if (!MoneyClaim.Equals(other.MoneyClaim))
     {
         return(false);
     }
     if (!object.Equals(ClothesGoal, other.ClothesGoal))
     {
         return(false);
     }
     if (UnlockDesc != other.UnlockDesc)
     {
         return(false);
     }
     if (MornImage != other.MornImage)
     {
         return(false);
     }
     if (NoonImage != other.NoonImage)
     {
         return(false);
     }
     if (AfternoonImage != other.AfternoonImage)
     {
         return(false);
     }
     return(true);
 }
Пример #2
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);
        }