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

            if (Ret != 0)
            {
                hash ^= Ret.GetHashCode();
            }
            if (userMoney_ != null)
            {
                hash ^= UserMoney.GetHashCode();
            }
            if (userDraw_ != null)
            {
                hash ^= UserDraw.GetHashCode();
            }
            hash ^= awards_.GetHashCode();
            if (userDrawInfo_ != null)
            {
                hash ^= UserDrawInfo.GetHashCode();
            }
            if (userItem_ != null)
            {
                hash ^= UserItem.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
 public void MergeFrom(DrawRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ret != 0)
     {
         Ret = other.Ret;
     }
     if (other.userMoney_ != null)
     {
         if (userMoney_ == null)
         {
             userMoney_ = new global::Com.Proto.UserMoneyPB();
         }
         UserMoney.MergeFrom(other.UserMoney);
     }
     if (other.userDraw_ != null)
     {
         if (userDraw_ == null)
         {
             userDraw_ = new global::Com.Proto.UserDrawPB();
         }
         UserDraw.MergeFrom(other.UserDraw);
     }
     awards_.Add(other.awards_);
     if (other.userDrawInfo_ != null)
     {
         if (userDrawInfo_ == null)
         {
             userDrawInfo_ = new global::Com.Proto.UserDrawInfoPB();
         }
         UserDrawInfo.MergeFrom(other.UserDrawInfo);
     }
     if (other.userItem_ != null)
     {
         if (userItem_ == null)
         {
             userItem_ = new global::Com.Proto.UserItemPB();
         }
         UserItem.MergeFrom(other.UserItem);
     }
 }