示例#1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            PokedexSimpleInfo _inst = (PokedexSimpleInfo)_base;

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

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

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

                case  24: {
                    _inst.PokedexSimpleInfoValue = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
示例#2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCGetPokedexList _inst = (GCGetPokedexList)_base;

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

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

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

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

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

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

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

                case  56: {
                    _inst.NewId = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
示例#3
0
 public void AddPokedexs(PokedexSimpleInfo value)
 {
     pokedexs_.Add(value);
 }