From 10af265bfb48590a26949e73e01331b812b8fb29 Mon Sep 17 00:00:00 2001 From: zhangshanxue Date: Mon, 10 Aug 2020 10:48:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=8B=B1=E9=9B=84=E7=BD=AE=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/CommonProto.proto | 1 + protos/HeroInfoProto.proto | 29 +++++++++++++++++++++++++++++ protos/MessageTypeProto.proto | 11 +++++++++++ 3 files changed, 41 insertions(+) diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index b371dbc..ccfe2b0 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -100,6 +100,7 @@ option optimize_for = SPEED; optional int32 lockState = 13;// 上锁状态 1 :上锁 0:未上锁 repeated string jewels = 14;//宝器 optional int32 createtype = 15;//创建类型 1猎妖援助 + optional int32 changeId = 16;//置换模板id 默认0 } diff --git a/protos/HeroInfoProto.proto b/protos/HeroInfoProto.proto index c20a715..a7ff777 100644 --- a/protos/HeroInfoProto.proto +++ b/protos/HeroInfoProto.proto @@ -211,3 +211,32 @@ import "CommonProto.proto"; repeated string equipIds =1;//消耗的装备 optional Drop drop = 2;//合成的装备 } + + message SaveHeroChangeRequest{ + optional string heroId = 1; //操作英雄id + optional int32 heroTempId = 2; //置换的id + } + + message SaveHeroChangeResponse{ + } + + message CancelHeroChangeRequest{ + optional string heroId = 1; //操作英雄id + } + + message CancelHeroChangeResponse{ + } + + + message DoHeroChangeRequest{ + optional string heroId = 1; //操作英雄id + optional int32 heroTempId = 2; //置换的id + } + + message DoHeroChangeResponse{ + optional Drop drop = 1;//掉落 + } + + + + \ No newline at end of file diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index 9987fb0..f54f8d9 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -1001,6 +1001,17 @@ enum MessageType{ //303501 - 303600 竞技场 TakeArenaBattleRewardRequest = 303501; TakeArenaBattleRewardResponse = 303502; + + //303601 - 303650 英雄置换 + SaveHeroChangeRequest = 303601; + SaveHeroChangeResponse = 303602; + + CancelHeroChangeRequest = 303603; + CancelHeroChangeResponse = 303604; + + DoHeroChangeRequest = 303605; + DoHeroChangeResponse = 303606; + } From fb2a59d7a150a1222f4cc4af419ae9cc0e7d8dea Mon Sep 17 00:00:00 2001 From: zhangshanxue Date: Mon, 10 Aug 2020 15:20:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=8B=B1=E9=9B=84=E7=BD=AE=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/HeroInfoProto.proto | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protos/HeroInfoProto.proto b/protos/HeroInfoProto.proto index a7ff777..3f7950c 100644 --- a/protos/HeroInfoProto.proto +++ b/protos/HeroInfoProto.proto @@ -214,10 +214,10 @@ import "CommonProto.proto"; message SaveHeroChangeRequest{ optional string heroId = 1; //操作英雄id - optional int32 heroTempId = 2; //置换的id } message SaveHeroChangeResponse{ + optional int32 heroTempId = 2; //置换的id } message CancelHeroChangeRequest{ @@ -230,7 +230,6 @@ import "CommonProto.proto"; message DoHeroChangeRequest{ optional string heroId = 1; //操作英雄id - optional int32 heroTempId = 2; //置换的id } message DoHeroChangeResponse{