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

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

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

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

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

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

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

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

                case  58: {
                    _inst.UiId = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemple #2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            IntegralRewardInfo _inst = (IntegralRewardInfo)_base;

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

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

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

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

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

                case  42: {
                    _inst.PlayerName = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemple #3
0
 public void AddRewardInfos(IntegralRewardInfo value)
 {
     rewardInfos_.Add(value);
 }