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

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

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

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

                case  26: {
                    _inst.Name = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
Example #2
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);
        }
Example #3
0
 public void AddRankInfos(IntegralRankInfo value)
 {
     rankInfos_.Add(value);
 }