示例#1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCCombineActivityItemUpdate _inst = (GCCombineActivityItemUpdate)_base;

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

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

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

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

                case  34: {
                    CombineActivityExchangeItem subBuilder = new CombineActivityExchangeItem();
                    input.ReadMessage(subBuilder);
                    _inst.AddExchangeItems(subBuilder);
                    break;
                }

                case  42: {
                    CombineActivityBuyItem subBuilder = new CombineActivityBuyItem();
                    input.ReadMessage(subBuilder);
                    _inst.AddBuyItems(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
示例#2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            CombineActivityExchangeItem _inst = (CombineActivityExchangeItem)_base;

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

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

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

                case  26: {
                    _inst.RewardInfo = input.ReadString();
                    break;
                }

                case  34: {
                    _inst.NeedItemList = input.ReadString();
                    break;
                }

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

                case  48: {
                    _inst.GetTimesLimit = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
示例#3
0
 public void AddExchangeItems(CombineActivityExchangeItem value)
 {
     exchangeItems_.Add(value);
 }