Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public void AddRechargeItemList(RechargeItem value)
 {
     rechargeItemList_.Add(value);
 }