Commit c2ba62f154b56c0327dcb873594d4d6bd3bf13bd
1 parent
81daadd6
feat: 英雄技能通过转身点升级
Showing
3 changed files
with
20 additions
and
6 deletions
 
Show diff stats
game.proto
| @@ -155,6 +155,18 @@ message HeroReinRsp { | @@ -155,6 +155,18 @@ message HeroReinRsp { | ||
| 155 | models.Hero hero = 1; | 155 | models.Hero hero = 1; | 
| 156 | } | 156 | } | 
| 157 | 157 | ||
| 158 | +message HeroSkillUpLevelReq { | ||
| 159 | + string hero_id = 1; | ||
| 160 | + int32 skill_id = 2; | ||
| 161 | + int32 skill_type = 3; | ||
| 162 | +} | ||
| 163 | + | ||
| 164 | +message HeroSkillUpLevelRsp { | ||
| 165 | + string hero_id = 1; | ||
| 166 | + int32 skill_id = 2; | ||
| 167 | + int32 skill_level = 3; | ||
| 168 | +} | ||
| 169 | + | ||
| 158 | message EmailListReq { | 170 | message EmailListReq { | 
| 159 | } | 171 | } | 
| 160 | 172 | 
models.proto
| @@ -47,8 +47,9 @@ message Hero { | @@ -47,8 +47,9 @@ message Hero { | ||
| 47 | int32 level = 4; | 47 | int32 level = 4; | 
| 48 | int32 rein_count = 5; | 48 | int32 rein_count = 5; | 
| 49 | int32 rein_point = 6; | 49 | int32 rein_point = 6; | 
| 50 | - string equipments = 7; //"id=pos id1=pos1" | 50 | + map<string, int32> equipments = 7; //"id=pos id1=pos1" | 
| 51 | int32 exp = 8; | 51 | int32 exp = 8; | 
| 52 | + map<int32, int32> skills = 9; | ||
| 52 | } | 53 | } | 
| 53 | 54 | ||
| 54 | message Equipment { | 55 | message Equipment { | 
protocode.proto
| @@ -23,11 +23,12 @@ enum ProtoCode | @@ -23,11 +23,12 @@ enum ProtoCode | ||
| 23 | EquipmentEnhanceRpc = 515; | 23 | EquipmentEnhanceRpc = 515; | 
| 24 | HeroUpLevelRpc = 516; | 24 | HeroUpLevelRpc = 516; | 
| 25 | HeroReinRpc = 517; | 25 | HeroReinRpc = 517; | 
| 26 | - EmailListRpc = 518; | ||
| 27 | - EmailDrawRpc = 519; | ||
| 28 | - EmailCheckRpc = 520; | ||
| 29 | - EmailDelRpc = 521; | ||
| 30 | - StoreBuyRpc = 522; | 26 | + HeroSkillUpLevelRpc = 518; | 
| 27 | + EmailListRpc = 519; | ||
| 28 | + EmailDrawRpc = 520; | ||
| 29 | + EmailCheckRpc = 521; | ||
| 30 | + EmailDelRpc = 522; | ||
| 31 | + StoreBuyRpc = 523; | ||
| 31 | 32 | ||
| 32 | DisConnectNty = 1001; | 33 | DisConnectNty = 1001; | 
| 33 | RoleUpdatePropertyNty = 1002; | 34 | RoleUpdatePropertyNty = 1002; |