Beispiel #1
0
 public void MergeFrom(BuyElementRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ret != 0)
     {
         Ret = other.Ret;
     }
     if (other.userElement_ != null)
     {
         if (userElement_ == null)
         {
             userElement_ = new global::Com.Proto.UserElementPB();
         }
         UserElement.MergeFrom(other.UserElement);
     }
     if (other.userMoney_ != null)
     {
         if (userMoney_ == null)
         {
             userMoney_ = new global::Com.Proto.UserMoneyPB();
         }
         UserMoney.MergeFrom(other.UserMoney);
     }
 }
Beispiel #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    Ret = input.ReadSInt32();
                    break;
                }

                case 18: {
                    if (userElement_ == null)
                    {
                        userElement_ = new global::Com.Proto.UserElementPB();
                    }
                    input.ReadMessage(userElement_);
                    break;
                }

                case 26: {
                    if (userMoney_ == null)
                    {
                        userMoney_ = new global::Com.Proto.UserMoneyPB();
                    }
                    input.ReadMessage(userMoney_);
                    break;
                }
                }
            }
        }