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

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

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

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

                case  24: {
                    _inst.MaxTimes = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
示例#2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCRechargeItemInfo _inst = (GCRechargeItemInfo)_base;

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

                case  10: {
                    RechargeItem subBuilder = new RechargeItem();
                    input.ReadMessage(subBuilder);
                    _inst.AddRechargeItemList(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
示例#3
0
 public void AddRechargeItemList(RechargeItem value)
 {
     rechargeItemList_.Add(value);
 }