Commit a9dc1d7c1801b58b4a64e42f3b60d51fd16e3092

Authored by zhangqijia
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
... ... @@ -26,6 +26,7 @@ enum ProtoCode
26 26 RoleMiddleClimbRpc = 118;
27 27 RoleEndClimbRpc = 119;
28 28 RoleRankClimbRpc = 120;
  29 + RoleMoppingUpRpc = 121;
29 30  
30 31 HeroEquipReferRpc = 201;
31 32 HeroFragmentCovertRpc = 202;
... ...
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 +}
... ...