Commit 6b7d7ac2788940c517f2aec98e718819559c156c
1 parent
6761b305
fix: 宝石切割 attention 协议
Showing
3 changed files
with
15 additions
and
2 deletions
Show diff stats
game.proto
@@ -292,8 +292,18 @@ message GemSliceRsp { | @@ -292,8 +292,18 @@ message GemSliceRsp { | ||
292 | models.GemSlot gem_slot = 1; | 292 | models.GemSlot gem_slot = 1; |
293 | } | 293 | } |
294 | 294 | ||
295 | +message GemAttentionReq { | ||
296 | + string slot_id = 1; | ||
297 | +} | ||
298 | + | ||
299 | +message GemAttentionRsp { | ||
300 | + string slot_id = 1; | ||
301 | + repeated int32 attentions = 2; | ||
302 | +} | ||
303 | + | ||
295 | message GemSliceRewardReq { | 304 | message GemSliceRewardReq { |
296 | string slot_id = 1; | 305 | string slot_id = 1; |
306 | + int32 draw_type = 2; | ||
297 | } | 307 | } |
298 | 308 | ||
299 | message GemSliceRewardRsp { | 309 | message GemSliceRewardRsp { |
models.proto
@@ -78,9 +78,11 @@ message GemSlot { | @@ -78,9 +78,11 @@ message GemSlot { | ||
78 | string id = 1; // @inject_tag: index:"unique" pri:"1" | 78 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
79 | string role_id = 2; | 79 | string role_id = 2; |
80 | int32 slot = 3; | 80 | int32 slot = 3; |
81 | - map<string, int32> reward = 4; | 81 | + map<string,int32> reward = 4; |
82 | int64 end_time = 5; | 82 | int64 end_time = 5; |
83 | bool start = 6; | 83 | bool start = 6; |
84 | + repeated int32 gem_attention = 7; | ||
85 | + int32 group_id = 8; | ||
84 | } | 86 | } |
85 | 87 | ||
86 | message Role { | 88 | message Role { |
protocode.proto
@@ -37,7 +37,8 @@ enum ProtoCode | @@ -37,7 +37,8 @@ enum ProtoCode | ||
37 | StoreBuyRpc = 529; | 37 | StoreBuyRpc = 529; |
38 | ItemGemCompoundRpc = 530; | 38 | ItemGemCompoundRpc = 530; |
39 | GemSliceRpc = 531; | 39 | GemSliceRpc = 531; |
40 | - GemSliceRewardRpc = 532; | 40 | + GemAttentionRpc = 532; |
41 | + GemSliceRewardRpc = 533; | ||
41 | 42 | ||
42 | DisConnectNty = 1001; | 43 | DisConnectNty = 1001; |
43 | RoleUpdatePropertyNty = 1002; | 44 | RoleUpdatePropertyNty = 1002; |