From fc562030ffbf631c959535289ae206723373ffce Mon Sep 17 00:00:00 2001 From: wangyuan Date: Thu, 21 Feb 2019 10:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=A6=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/CommonProto.proto | 11 +++++++++++ protos/HeroInfoProto.proto | 13 +++++++++++++ protos/MessageTypeProto.proto | 8 ++++++++ 3 files changed, 32 insertions(+) diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index ff5e04b..9e038ab 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -154,4 +154,15 @@ option optimize_for = SPEED; repeated TeamPokemonInfo teamPokemonInfos = 4; // 异妖id } + message Pokemoncomonpent{ + optional int32 id =1; + optional int32 level =2; + } + + message PokemonInfo{ + optional int32 id = 1; //异妖id + optional int32 stage =2; //异妖进阶阶数 + repeated Pokemoncomonpent pokemoncomonpent =3; //组件信息 + } + diff --git a/protos/HeroInfoProto.proto b/protos/HeroInfoProto.proto index 8532010..ec0111b 100644 --- a/protos/HeroInfoProto.proto +++ b/protos/HeroInfoProto.proto @@ -77,3 +77,16 @@ import "CommonProto.proto"; message GetAllEquipResponse{ repeated Equip equip =1; } + + message GetAllPokemonResponse{ + repeated PokemonInfo pokemonInfo =1; + } + + message PokenmonUpLevelRequest{//异妖相关 组件放置升级 + optional int32 pokemonId =1;//异妖id + optional int32 comonpentId =2; // 组件id + } + + message PokemonAdvancedRequest{ //异妖进阶 + optional int32 pokemonId = 1; //要进阶异妖的id + } diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index cceff73..f400b47 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -67,6 +67,9 @@ enum MessageType{ GET_ALL_EQUIP_REQUEST = 16614; //装备 GET_ALL_EQUIP_RESPONSE = 16615; + GET_ALL_POKEMON_REQUEST = 16616; //获取所有异妖 + GET_ALL_POKEMON_RESPONSE = 16617; + // H 10700 HERO_RAND_REQQUEST = 10701; @@ -98,6 +101,11 @@ enum MessageType{ // N 11300 // O 11400 // P 11500 + POKEMON_COMONPENT_LEVELUP_REQUEST = 11500; //异妖相关 组件放置升级 + POKEMON_COMONPENT_LEVELUP_RESPONSE = 11501; + + POKEMON_ADVANCED_REQUEST = 11502; //异妖进阶 + POKEMON_ADVANCED_RESPONSE = 11503; // Q 11600 // R 11700 RECONNECT_REQUEST = 11700; //