Exemple #1
0
 public void MergeFrom(DressUpUnlockRulePB other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ItemId != 0)
     {
         ItemId = other.ItemId;
     }
     if (other.ItemType != 0)
     {
         ItemType = other.ItemType;
     }
     if (other.Player != 0)
     {
         Player = other.Player;
     }
     moneyClaim_.Add(other.moneyClaim_);
     if (other.clothesGoal_ != null)
     {
         if (clothesGoal_ == null)
         {
             clothesGoal_ = new global::Com.Proto.ClothesGoalPB();
         }
         ClothesGoal.MergeFrom(other.ClothesGoal);
     }
     if (other.UnlockDesc.Length != 0)
     {
         UnlockDesc = other.UnlockDesc;
     }
     if (other.MornImage.Length != 0)
     {
         MornImage = other.MornImage;
     }
     if (other.NoonImage.Length != 0)
     {
         NoonImage = other.NoonImage;
     }
     if (other.AfternoonImage.Length != 0)
     {
         AfternoonImage = other.AfternoonImage;
     }
 }
Exemple #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);
        }