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

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

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

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

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

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

                case  42: {
                    _inst.ShowReward = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
示例#2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCActivityRankResult _inst = (GCActivityRankResult)_base;

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

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

                case  18: {
                    ActivityRankInfo subBuilder = new ActivityRankInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddChargeRanks(subBuilder);
                    break;
                }

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

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

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

                case  50: {
                    ActivityRankReward subBuilder = new ActivityRankReward();
                    input.ReadMessage(subBuilder);
                    _inst.AddChargeRewards(subBuilder);
                    break;
                }

                case  58: {
                    ActivityRankReward subBuilder = new ActivityRankReward();
                    input.ReadMessage(subBuilder);
                    _inst.AddSpendRewards(subBuilder);
                    break;
                }

                case  64: {
                    _inst.Type = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
示例#3
0
 public void AddSpendRewards(ActivityRankReward value)
 {
     spendRewards_.Add(value);
 }
示例#4
0
 public void AddChargeRewards(ActivityRankReward value)
 {
     chargeRewards_.Add(value);
 }