예제 #1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            ActivityRankInfo _inst = (ActivityRankInfo)_base;

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

                case  8: {
                    _inst.PlayerID = input.ReadInt64();
                    break;
                }

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

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

                case  32: {
                    _inst.Points = input.ReadInt32();
                    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 SetPlayerSpend(ActivityRankInfo value)
 {
     hasPlayerSpend = true;
     playerSpend_   = value;
 }
예제 #4
0
 public void SetPlayerCharge(ActivityRankInfo value)
 {
     hasPlayerCharge = true;
     playerCharge_   = value;
 }
예제 #5
0
 public void AddSpendRanks(ActivityRankInfo value)
 {
     spendRanks_.Add(value);
 }
예제 #6
0
 public void AddChargeRanks(ActivityRankInfo value)
 {
     chargeRanks_.Add(value);
 }