Commit daec81c63054431243d60df91e25dbcd84b3a854
1 parent
d66b24f2
feat: 增加战斗离线数据存储
Showing
2 changed files
with
11 additions
and
1 deletions
Show diff stats
models.proto
| @@ -143,7 +143,6 @@ message Role { | @@ -143,7 +143,6 @@ message Role { | ||
| 143 | int32 lucky_seek = 33; // lucky black cat seek | 143 | int32 lucky_seek = 33; // lucky black cat seek |
| 144 | bool del = 34; | 144 | bool del = 34; |
| 145 | int32 copies_num = 35; | 145 | int32 copies_num = 35; |
| 146 | - int32 battle_carbon = 36; | ||
| 147 | } | 146 | } |
| 148 | 147 | ||
| 149 | message Activity { | 148 | message Activity { |
| @@ -173,4 +172,12 @@ message Dispatch { | @@ -173,4 +172,12 @@ message Dispatch { | ||
| 173 | repeated string heros = 5; | 172 | repeated string heros = 5; |
| 174 | int64 end_time = 6; | 173 | int64 end_time = 6; |
| 175 | bool status = 7; // true=正在派遣 | 174 | bool status = 7; // true=正在派遣 |
| 175 | +} | ||
| 176 | + | ||
| 177 | +message BattleOffline { | ||
| 178 | + string team_id = 1; | ||
| 179 | + string drop_reward = 2; | ||
| 180 | + repeated string MapItemDrops = 3; | ||
| 181 | + repeated string TreasureReward = 4; | ||
| 182 | + int32 battle_carbon = 5; | ||
| 176 | } | 183 | } |
| 177 | \ No newline at end of file | 184 | \ No newline at end of file |
role.proto
| @@ -35,6 +35,8 @@ message LoginRsp { | @@ -35,6 +35,8 @@ message LoginRsp { | ||
| 35 | map<string,models.Dispatch> dispatch = 11; | 35 | map<string,models.Dispatch> dispatch = 11; |
| 36 | map<int32,bool> circle_task = 12; | 36 | map<int32,bool> circle_task = 12; |
| 37 | map<int32,bool> limit_task = 13; | 37 | map<int32,bool> limit_task = 13; |
| 38 | + | ||
| 39 | + models.BattleOffline battle_offline = 14; | ||
| 38 | } | 40 | } |
| 39 | 41 | ||
| 40 | message CreateRar { | 42 | message CreateRar { |
| @@ -67,6 +69,7 @@ message RoleClearItemsRar { | @@ -67,6 +69,7 @@ message RoleClearItemsRar { | ||
| 67 | message RoleStartBattleReq { | 69 | message RoleStartBattleReq { |
| 68 | int32 chapter_id = 1; | 70 | int32 chapter_id = 1; |
| 69 | int32 carbon_id = 2; | 71 | int32 carbon_id = 2; |
| 72 | + string team_id = 3; | ||
| 70 | } | 73 | } |
| 71 | 74 | ||
| 72 | message RoleStartBattleRsp { | 75 | message RoleStartBattleRsp { |