Commit b3c897cb46a80cf17d0d994a4ec46a2c7117a022
1 parent
f9035326
fix: 裝備戒指类型特殊处理
Showing
3 changed files
with
17 additions
and
9 deletions
Show diff stats
game.proto
... | ... | @@ -36,10 +36,13 @@ message ChangeTeamReq { |
36 | 36 | |
37 | 37 | //ResponseCmd HeroEquipReferReq |
38 | 38 | message HeroEquipReferReq { |
39 | - repeated string equipIds = 1; //[id, id2] | |
39 | + message EquipInfo { | |
40 | + string equipId = 1; | |
41 | + int32 pos = 2; | |
42 | + } | |
43 | + repeated EquipInfo equipIds = 1; | |
40 | 44 | string hero_id = 2; |
41 | 45 | bool refer = 3; //true 穿戴, false 脱下 |
42 | - bool left = 4; // 是否左手 只对戒指有效 | |
43 | 46 | } |
44 | 47 | |
45 | 48 | message RoleRsp { |
... | ... | @@ -60,6 +63,10 @@ message RoleUpdateItemsRsp { |
60 | 63 | string items = 1; |
61 | 64 | } |
62 | 65 | |
66 | +message RoleUpdateChangeRsp { | |
67 | + | |
68 | +} | |
69 | + | |
63 | 70 | //ResponseCmd RoleClearItemsReq |
64 | 71 | message RoleClearItemsReq { |
65 | 72 | repeated string items = 1; | ... | ... |
models.proto
protocode.proto
... | ... | @@ -17,11 +17,12 @@ enum ProtoCode |
17 | 17 | RoleRsp = 9; |
18 | 18 | RoleUpdatePropertyRsp = 10; |
19 | 19 | RoleUpdateItemsRsp = 11; |
20 | - RoleClearItemsReq = 12; | |
21 | - RoleStartBattleReq = 13; | |
22 | - RoleEndBattleReq = 14; | |
23 | - RoleEndBattleRsp = 15; | |
24 | - EquipmentDelReq = 16; | |
25 | - EquipmentAddRsp = 17; | |
20 | + RoleUpdateChangeRsp = 12; | |
21 | + RoleClearItemsReq = 13; | |
22 | + RoleStartBattleReq = 14; | |
23 | + RoleEndBattleReq = 15; | |
24 | + RoleEndBattleRsp = 16; | |
25 | + EquipmentDelReq = 17; | |
26 | + EquipmentAddRsp = 18; | |
26 | 27 | |
27 | 28 | } |
28 | 29 | \ No newline at end of file | ... | ... |