示例#1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            RewardItem _inst = (RewardItem)_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);
        }
示例#2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCTowerPush _inst = (GCTowerPush)_base;

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

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

                case  16: {
                    _inst.TimeStamp = input.ReadInt64();
                    break;
                }

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

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

                case  42: {
                    RewardItem subBuilder = new RewardItem();
                    input.ReadMessage(subBuilder);
                    _inst.AddFirstRewards(subBuilder);
                    break;
                }

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

                case  56: {
                    _inst.BeginTime = input.ReadInt64();
                    break;
                }
                }
            }
            return(_inst);
        }
示例#3
0
 public void AddFirstRewards(RewardItem value)
 {
     firstRewards_.Add(value);
 }
示例#4
0
 public void AddRewardItems(RewardItem value)
 {
     rewardItems_.Add(value);
 }