Example #1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            RankRewardsInfo _inst = (RankRewardsInfo)_base;

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

                case  10: {
                    _inst.Ranks = input.ReadString();
                    break;
                }

                case  18: {
                    Iteminfo subBuilder = new Iteminfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddRewards(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
Example #2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            MidaClientInfo _inst = (MidaClientInfo)_base;

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

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

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

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

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

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

                case  48: {
                    _inst.StartTime = input.ReadInt64();
                    break;
                }

                case  56: {
                    _inst.EndTime = input.ReadInt64();
                    break;
                }

                case  66: {
                    Iteminfo subBuilder = new Iteminfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddItems(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
Example #3
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            HRRewardInfo _inst = (HRRewardInfo)_base;

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

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

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

                case  24: {
                    _inst.ConsumeSid = input.ReadInt32();
                    break;
                }

                case  32: {
                    _inst.ConsumeValue = input.ReadInt32();
                    break;
                }

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

                case  48: {
                    _inst.Id = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Example #4
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCChallengeBatchReward _inst = (GCChallengeBatchReward)_base;

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

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

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

                case  24: {
                    _inst.Bo = input.ReadInt32();
                    break;
                }

                case  32: {
                    _inst.MopNum = input.ReadInt32();
                    break;
                }

                case  42: {
                    Iteminfo subBuilder = new Iteminfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddRewardItems(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
Example #5
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            MidaTargetInfo _inst = (MidaTargetInfo)_base;

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

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

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

                case  24: {
                    _inst.ConsumeValue = input.ReadInt32();
                    break;
                }

                case  32: {
                    _inst.IsShow = input.ReadInt32();
                    break;
                }

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

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

                case  56: {
                    _inst.MaxNun = input.ReadInt32();
                    break;
                }

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

                case  72: {
                    _inst.Currency2 = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Example #6
0
 public void SetItemInfo(Iteminfo value)
 {
     hasItemInfo = true;
     itemInfo_   = value;
 }
Example #7
0
 public void AddItems(Iteminfo value)
 {
     items_.Add(value);
 }
Example #8
0
 public void AddRewards(Iteminfo value)
 {
     rewards_.Add(value);
 }
Example #9
0
 public void AddItemInfo(Iteminfo value)
 {
     itemInfo_.Add(value);
 }