Commit 3165650fa6204632ea2054106c956a30939c04dd

Authored by zhangqijia
1 parent 71f9af77

feat: 英雄品质升级;新增 1. 品质升级协议; 2. 记忆碎片升级协议

Showing 3 changed files with 21 additions and 1 deletions   Show diff stats
hero.proto
... ... @@ -72,4 +72,22 @@ message HeroAddNty {
72 72 message HeroUpdatePropertyNty {
73 73 repeated string keys = 1;
74 74 models.Activity activity = 2;
  75 +}
  76 +
  77 +message HeroQualityUpLevelReq{
  78 + string hero_id = 1;
  79 +}
  80 +
  81 +message HeroQualityUpLevelRsp{
  82 + models.Hero hero = 1;
  83 +}
  84 +
  85 +message HeroMemorySlotUpLevelReq{
  86 + string hero_id = 1;
  87 + int32 slot = 2;
  88 + string cost = 3;
  89 +}
  90 +
  91 +message HeroMemorySlotUpLevelRsp{
  92 + models.Hero hero = 1;
75 93 }
76 94 \ No newline at end of file
... ...
models.proto
... ... @@ -25,7 +25,7 @@ message Hero {
25 25 map<string,int32> equipments = 7;
26 26 int32 star = 8;
27 27 int32 rein_count = 9;
28   - map<int32,int32> slot = 10;
  28 + map<int32,string> slot_memory = 10; // [slot_id:itemId=star=exp]
29 29 int32 quality = 11;
30 30 }
31 31  
... ...
protocode.proto
... ... @@ -34,6 +34,8 @@ enum ProtoCode
34 34 HeroUpLevelRpc = 204;
35 35 HeroReinRpc = 205;
36 36 HeroSkillUpLevelRpc = 206;
  37 + HeroQualityUpLevelRpc = 207;
  38 + HeroMemorySlotUpLevelRpc = 208;
37 39  
38 40 EmailListRpc = 301;
39 41 EmailDrawRpc = 302;
... ...