Commit 158d343bbe42a5a111735728ac873570c2306a71
1 parent
b3bf8eeb
fix: 英雄碎片升级协议
Showing
3 changed files
with
40 additions
and
29 deletions
Show diff stats
game.proto
@@ -54,6 +54,15 @@ message HeroEquipReferRar { | @@ -54,6 +54,15 @@ message HeroEquipReferRar { | ||
54 | bool refer = 3; //true 穿戴, false 脱下 | 54 | bool refer = 3; //true 穿戴, false 脱下 |
55 | } | 55 | } |
56 | 56 | ||
57 | +message HeroFragmentCovertReq{ | ||
58 | + string hero_id = 1; | ||
59 | + int32 fragment_count = 2; | ||
60 | +} | ||
61 | + | ||
62 | +message HeroFragmentCovertRsp{ | ||
63 | + models.Hero hero = 1; | ||
64 | +} | ||
65 | + | ||
57 | message RoleUpdatePropertyNty { | 66 | message RoleUpdatePropertyNty { |
58 | repeated string keys = 1; | 67 | repeated string keys = 1; |
59 | models.Role role = 2; | 68 | models.Role role = 2; |
models.proto
@@ -25,6 +25,7 @@ message Hero { | @@ -25,6 +25,7 @@ message Hero { | ||
25 | int32 exp = 7; | 25 | int32 exp = 7; |
26 | map<int32,int32> skills = 8; | 26 | map<int32,int32> skills = 8; |
27 | map<string,int32> equipments = 9; | 27 | map<string,int32> equipments = 9; |
28 | + int32 star = 10; | ||
28 | } | 29 | } |
29 | 30 | ||
30 | message Equipment { | 31 | message Equipment { |
protocode.proto
@@ -11,35 +11,36 @@ enum ProtoCode | @@ -11,35 +11,36 @@ enum ProtoCode | ||
11 | CreateRpc = 503; | 11 | CreateRpc = 503; |
12 | ChangeTeamRpc = 504; | 12 | ChangeTeamRpc = 504; |
13 | HeroEquipReferRpc = 505; | 13 | HeroEquipReferRpc = 505; |
14 | - RoleClearItemsRpc = 506; | ||
15 | - RoleStartBattleRpc = 507; | ||
16 | - RoleEndBattleRpc = 508; | ||
17 | - RoleGuideRpc = 509; | ||
18 | - RoleTaskRpc = 510; | ||
19 | - RoleOpenBoxRpc = 511; | ||
20 | - RoleBuffRpc = 512; | ||
21 | - RoleResetChapterRpc = 513; | ||
22 | - RoleCostRpc = 514; | ||
23 | - RoleLogOutRpc = 515; | ||
24 | - RoleDrawCardRpc = 516; | ||
25 | - RoleCdKeyRpc = 517; | ||
26 | - EquipmentDelRpc = 518; | ||
27 | - EquipmentEnhanceRpc = 519; | ||
28 | - EquipmentSetGemRpc = 520; | ||
29 | - EquipmentDelGemRpc = 521; | ||
30 | - HeroUpLevelRpc = 522; | ||
31 | - HeroReinRpc = 523; | ||
32 | - HeroSkillUpLevelRpc = 524; | ||
33 | - EmailListRpc = 525; | ||
34 | - EmailDrawRpc = 526; | ||
35 | - EmailCheckRpc = 527; | ||
36 | - EmailDelRpc = 528; | ||
37 | - StoreBuyRpc = 529; | ||
38 | - ItemGemCompoundRpc = 530; | ||
39 | - GemSliceRpc = 531; | ||
40 | - GemSliceStopRpc = 532; | ||
41 | - GemAttentionRpc = 533; | ||
42 | - GemSliceRewardRpc = 534; | 14 | + HeroFragmentCovertRpc = 506; |
15 | + RoleClearItemsRpc = 507; | ||
16 | + RoleStartBattleRpc = 508; | ||
17 | + RoleEndBattleRpc = 509; | ||
18 | + RoleGuideRpc = 510; | ||
19 | + RoleTaskRpc = 511; | ||
20 | + RoleOpenBoxRpc = 512; | ||
21 | + RoleBuffRpc = 513; | ||
22 | + RoleResetChapterRpc = 514; | ||
23 | + RoleCostRpc = 515; | ||
24 | + RoleLogOutRpc = 516; | ||
25 | + RoleDrawCardRpc = 517; | ||
26 | + RoleCdKeyRpc = 518; | ||
27 | + EquipmentDelRpc = 519; | ||
28 | + EquipmentEnhanceRpc = 520; | ||
29 | + EquipmentSetGemRpc = 521; | ||
30 | + EquipmentDelGemRpc = 522; | ||
31 | + HeroUpLevelRpc = 523; | ||
32 | + HeroReinRpc = 524; | ||
33 | + HeroSkillUpLevelRpc = 525; | ||
34 | + EmailListRpc = 526; | ||
35 | + EmailDrawRpc = 527; | ||
36 | + EmailCheckRpc = 528; | ||
37 | + EmailDelRpc = 529; | ||
38 | + StoreBuyRpc = 530; | ||
39 | + ItemGemCompoundRpc = 531; | ||
40 | + GemSliceRpc = 532; | ||
41 | + GemSliceStopRpc = 533; | ||
42 | + GemAttentionRpc = 534; | ||
43 | + GemSliceRewardRpc = 535; | ||
43 | 44 | ||
44 | DisConnectNty = 1001; | 45 | DisConnectNty = 1001; |
45 | RoleUpdatePropertyNty = 1002; | 46 | RoleUpdatePropertyNty = 1002; |