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

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

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

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

                case  26: {
                    _inst.Reward = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
예제 #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);
        }
예제 #3
0
 public void AddNationalCashs(NationalCash value)
 {
     nationalCashs_.Add(value);
 }