public void MergeFrom(BuyItemRes 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.userItem_ != null) { if (userItem_ == null) { userItem_ = new global::Com.Proto.UserItemPB(); } UserItem.MergeFrom(other.UserItem); } }
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); } }