Esempio n. 1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            CommonExchangeInfo _inst = (CommonExchangeInfo)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  8: {
                    _inst.Bid = input.ReadInt32();
                    break;
                }

                case  16: {
                    _inst.Sid = input.ReadInt32();
                    break;
                }

                case  24: {
                    _inst.Num = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Esempio n. 2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            CommonExchangeListInfo _inst = (CommonExchangeListInfo)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  8: {
                    _inst.Id = input.ReadInt32();
                    break;
                }

                case  18: {
                    CommonExchangeInfo subBuilder = new CommonExchangeInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddEx(subBuilder);
                    break;
                }

                case  26: {
                    CommonExchangeInfo subBuilder = new CommonExchangeInfo();
                    input.ReadMessage(subBuilder);
                    _inst.BeEx = subBuilder;
                    break;
                }

                case  32: {
                    _inst.TotalNum = input.ReadInt32();
                    break;
                }

                case  40: {
                    _inst.HasNum = input.ReadInt32();
                    break;
                }

                case  48: {
                    _inst.ShopType = input.ReadInt32();
                    break;
                }

                case  58: {
                    _inst.ShopTypeName = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
Esempio n. 3
0
 public void SetBeEx(CommonExchangeInfo value)
 {
     hasBeEx = true;
     beEx_   = value;
 }
Esempio n. 4
0
 public void AddEx(CommonExchangeInfo value)
 {
     ex_.Add(value);
 }