Commit 838d5723b5716a32ca644889464b70ca3b656619
1 parent
7b64a0f4
feat: 增加通用的消耗协议
Showing
2 changed files
with
19 additions
and
10 deletions
Show diff stats
game.proto
@@ -120,6 +120,14 @@ message RoleResetBuffRar { | @@ -120,6 +120,14 @@ message RoleResetBuffRar { | ||
120 | string chapter_id = 1; | 120 | string chapter_id = 1; |
121 | } | 121 | } |
122 | 122 | ||
123 | +message RoleCostReq { | ||
124 | + string costs = 1; | ||
125 | +} | ||
126 | + | ||
127 | +message RoleCostRsp { | ||
128 | + int32 cur = 1; | ||
129 | +} | ||
130 | + | ||
123 | message EquipmentDelReq { | 131 | message EquipmentDelReq { |
124 | repeated string id = 1; | 132 | repeated string id = 1; |
125 | } | 133 | } |
protocode.proto
@@ -19,16 +19,17 @@ enum ProtoCode | @@ -19,16 +19,17 @@ enum ProtoCode | ||
19 | RoleOpenBoxRpc = 511; | 19 | RoleOpenBoxRpc = 511; |
20 | RoleBuffRpc = 512; | 20 | RoleBuffRpc = 512; |
21 | RoleResetBuffRpc = 513; | 21 | RoleResetBuffRpc = 513; |
22 | - EquipmentDelRpc = 514; | ||
23 | - EquipmentEnhanceRpc = 515; | ||
24 | - HeroUpLevelRpc = 516; | ||
25 | - HeroReinRpc = 517; | ||
26 | - HeroSkillUpLevelRpc = 518; | ||
27 | - EmailListRpc = 519; | ||
28 | - EmailDrawRpc = 520; | ||
29 | - EmailCheckRpc = 521; | ||
30 | - EmailDelRpc = 522; | ||
31 | - StoreBuyRpc = 523; | 22 | + RoleCostRpc = 514; |
23 | + EquipmentDelRpc = 515; | ||
24 | + EquipmentEnhanceRpc = 516; | ||
25 | + HeroUpLevelRpc = 517; | ||
26 | + HeroReinRpc = 518; | ||
27 | + HeroSkillUpLevelRpc = 519; | ||
28 | + EmailListRpc = 520; | ||
29 | + EmailDrawRpc = 521; | ||
30 | + EmailCheckRpc = 522; | ||
31 | + EmailDelRpc = 523; | ||
32 | + StoreBuyRpc = 524; | ||
32 | 33 | ||
33 | DisConnectNty = 1001; | 34 | DisConnectNty = 1001; |
34 | RoleUpdatePropertyNty = 1002; | 35 | RoleUpdatePropertyNty = 1002; |