Ejemplo n.º 1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            NationalRank _inst = (NationalRank)_base;

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

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

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

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

                case  32: {
                    _inst.PlayerID = input.ReadInt64();
                    break;
                }
                }
            }
            return(_inst);
        }
Ejemplo n.º 2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCNationalOperateResult _inst = (GCNationalOperateResult)_base;

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

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

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

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

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

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

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

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

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

                case  74: {
                    _inst.Caption = input.ReadString();
                    break;
                }

                case  82: {
                    _inst.ListNum = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
Ejemplo n.º 3
0
 public void AddNationalRanks(NationalRank value)
 {
     nationalRanks_.Add(value);
 }