예제 #1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCRefreshCommonExchange _inst = (GCRefreshCommonExchange)_base;

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

                case  10: {
                    CommonExchangeListInfo subBuilder = new CommonExchangeListInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddExs(subBuilder);
                    break;
                }

                case  18: {
                    _inst.AddHistory(input.ReadString());
                    break;
                }

                case  26: {
                    _inst.Information = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
예제 #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);
        }
예제 #3
0
 public void AddExs(CommonExchangeListInfo value)
 {
     exs_.Add(value);
 }