Commit 05ff05d1e4f3b6b8850d12198f4157f4c4259d8e

Authored by zhangqijia
1 parent 19116a4d

fix: 增加开箱子协议

Showing 2 changed files with 17 additions and 7 deletions   Show diff stats
game.proto
... ... @@ -99,6 +99,15 @@ message RoleTaskRar {
99 99 string reward = 3;
100 100 }
101 101  
  102 +message RoleOpenBoxReq {
  103 + string key = 1;
  104 + map<string, int32> costs = 2;
  105 +}
  106 +
  107 +message RoleOpenBoxRsp{
  108 + map<string, int32> reward = 3;
  109 +}
  110 +
102 111 message EquipmentDelRar {
103 112 repeated string id = 1;
104 113 }
... ...
protocode.proto
... ... @@ -16,13 +16,14 @@ enum ProtoCode
16 16 RoleEndBattleRpc = 508;
17 17 RoleGuideRpc = 509;
18 18 RoleTaskRpc = 510;
19   - EquipmentDelRpc = 511;
20   - HeroUpLevelRpc = 512;
21   - EmailListRpc = 513;
22   - EmailDrawRpc = 514;
23   - EmailCheckRpc = 515;
24   - EmailDelRpc = 516;
25   - StoreBuyRpc = 517;
  19 + RoleOpenBoxRpc = 511;
  20 + EquipmentDelRpc = 512;
  21 + HeroUpLevelRpc = 513;
  22 + EmailListRpc = 514;
  23 + EmailDrawRpc = 515;
  24 + EmailCheckRpc = 516;
  25 + EmailDelRpc = 517;
  26 + StoreBuyRpc = 518;
26 27  
27 28 DisConnectNty = 1001;
28 29 RoleUpdatePropertyNty = 1002;
... ...