Commit b5eff2aed66d2211de2e4460bb3edfe0a132fd48
1 parent
f7f6bffa
feat: 任务系统
Showing
3 changed files
with
20 additions
and
7 deletions
Show diff stats
game.proto
... | ... | @@ -88,6 +88,12 @@ message RoleEndBattleRsp { |
88 | 88 | repeated models.Hero hero = 6; |
89 | 89 | } |
90 | 90 | |
91 | +message RoleTaskRar { | |
92 | + int32 task_id = 1; | |
93 | + int32 task_type = 2; | |
94 | + map<string, int32> reward = 3; | |
95 | +} | |
96 | + | |
91 | 97 | message EquipmentDelRar { |
92 | 98 | repeated string id = 1; |
93 | 99 | } | ... | ... |
models.proto
... | ... | @@ -108,4 +108,10 @@ message Role { |
108 | 108 | uint32 materiallimit = 20; |
109 | 109 | |
110 | 110 | map<int32,int32> passchapters = 21; // 通关记录 |
111 | -} | |
111 | + map<int32, int32> time_reset = 22; // 重置记录 {1=1,2=1,3=1} 1=CrossDay,2=CrossWeek,3=CrossMonth | |
112 | + | |
113 | + uint32 activity = 23; | |
114 | + map<int32, int32> daily_task = 24; | |
115 | + map<int32, int32> week_task = 25; | |
116 | + map<int32, int32> month_task = 26; | |
117 | +} | |
112 | 118 | \ No newline at end of file | ... | ... |
protocode.proto
... | ... | @@ -14,12 +14,13 @@ enum ProtoCode |
14 | 14 | RoleClearItemsRpc = 506; |
15 | 15 | RoleStartBattleRpc = 507; |
16 | 16 | RoleEndBattleRpc = 508; |
17 | - EquipmentDelRpc = 509; | |
18 | - HeroUpLevelRpc = 510; | |
19 | - EmailListRpc = 511; | |
20 | - EmailDrawRpc = 512; | |
21 | - EmailCheckRpc = 513; | |
22 | - EmailDelRpc = 514; | |
17 | + RoleTaskRpc = 509; | |
18 | + EquipmentDelRpc = 510; | |
19 | + HeroUpLevelRpc = 511; | |
20 | + EmailListRpc = 512; | |
21 | + EmailDrawRpc = 513; | |
22 | + EmailCheckRpc = 514; | |
23 | + EmailDelRpc = 515; | |
23 | 24 | |
24 | 25 | DisConnectNty = 1001; |
25 | 26 | RoleUpdatePropertyNty = 1002; | ... | ... |