Commit a9dc1d7c1801b58b4a64e42f3b60d51fd16e3092
1 parent
76690ca0
feat: 添加扫荡关卡协议, 优化结束战斗部分
Showing
3 changed files
with
14 additions
and
1 deletions
Show diff stats
models.proto
... | ... | @@ -120,7 +120,7 @@ message Role { |
120 | 120 | uint32 jewelrylimit = 17; |
121 | 121 | uint32 materiallimit = 18; |
122 | 122 | |
123 | - map<int32,string> pass_chapters = 19; // 通关记录 | |
123 | + map<int32,string> pass_chapters = 19; // 通关记录 map[chapter_id]{carbon_id=pass_count=star} | |
124 | 124 | map<int32,int32> time_reset = 20; // 重置记录 {1=1,2=1,3=1} 1=CrossDay,2=CrossWeek,3=CrossMonth |
125 | 125 | |
126 | 126 | map<int32,int32> daily_task = 21; | ... | ... |
protocode.proto
role.proto
... | ... | @@ -75,6 +75,7 @@ message RoleEndBattleReq { |
75 | 75 | bool pass = 3; |
76 | 76 | string team_id = 4; |
77 | 77 | string drop_reward = 5; |
78 | + int32 star = 6; | |
78 | 79 | } |
79 | 80 | |
80 | 81 | message RoleEndBattleRsp { |
... | ... | @@ -187,3 +188,14 @@ message RoleRankClimbReq { |
187 | 188 | message RoleRankClimbRsp { |
188 | 189 | repeated models.RankClimb rank = 1; |
189 | 190 | } |
191 | + | |
192 | +message RoleMoppingUpReq { | |
193 | + int32 chapter_id = 1; | |
194 | + int32 carbon_id = 2; | |
195 | + string team_id = 3; | |
196 | +} | |
197 | + | |
198 | +message RoleMoppingUpRsp { | |
199 | + string reward = 1; | |
200 | + string drop_reward = 2; | |
201 | +} | ... | ... |