Commit 4e0136e6e06efd76f4bc35525cc2b3eb84e7194a

Authored by zhangqijia
1 parent bbe6ba0e

reactor: 任务系统重构

Showing 3 changed files with 25 additions and 7 deletions   Show diff stats
@@ -143,4 +143,14 @@ message Activity { @@ -143,4 +143,14 @@ message Activity {
143 map<int32,int64> actime = 2; 143 map<int32,int64> actime = 2;
144 map<int32,int32> common_sign = 3; 144 map<int32,int32> common_sign = 3;
145 map<int32,int32> act_sign = 4; 145 map<int32,int32> act_sign = 4;
  146 +}
  147 +
  148 +message Task {
  149 + string id = 1; // @inject_tag: index:"unique" pri:"1"
  150 + map<int32,int64> task_time = 2;
  151 + map<int32,int32> daily_task = 3;
  152 + map<int32,int32> week_task = 4;
  153 + map<int32,int32> month_task = 5;
  154 +
  155 + map<int32,string> specify_task = 6;
146 } 156 }
147 \ No newline at end of file 157 \ No newline at end of file
@@ -64,12 +64,13 @@ enum ProtoCode @@ -64,12 +64,13 @@ enum ProtoCode
64 DisConnectNty = 1001; 64 DisConnectNty = 1001;
65 RoleUpdatePropertyNty = 1002; 65 RoleUpdatePropertyNty = 1002;
66 RoleUpdateItemsNty = 1003; 66 RoleUpdateItemsNty = 1003;
67 - HeroAddNty = 1004;  
68 - HeroUpdatePropertyNty = 1005;  
69 - EmailNewNty = 1006;  
70 - EquipmentAddNty = 1007;  
71 - StoreUpdatePropertyNty = 1008;  
72 - ActivityPropertyNty = 1009;  
73 - ActivityCirNty = 1010; 67 + RoleTaskUpdateNty = 1004;
  68 + HeroAddNty = 1005;
  69 + HeroUpdatePropertyNty = 1006;
  70 + EmailNewNty = 1007;
  71 + EquipmentAddNty = 1008;
  72 + StoreUpdatePropertyNty = 1009;
  73 + ActivityPropertyNty = 1010;
  74 + ActivityCirNty = 1011;
74 75
75 } 76 }
76 \ No newline at end of file 77 \ No newline at end of file
@@ -31,6 +31,8 @@ message LoginRsp { @@ -31,6 +31,8 @@ message LoginRsp {
31 models.Activity activity = 7; 31 models.Activity activity = 7;
32 map<int32,bool> activity_open = 8; 32 map<int32,bool> activity_open = 8;
33 int64 time_now = 9; 33 int64 time_now = 9;
  34 + models.Task task = 10;
  35 + map<int32,bool> task_open = 11;
34 } 36 }
35 37
36 message CreateRar { 38 message CreateRar {
@@ -101,6 +103,11 @@ message RoleTaskRar { @@ -101,6 +103,11 @@ message RoleTaskRar {
101 string reward = 3; 103 string reward = 3;
102 } 104 }
103 105
  106 +message RoleTaskUpdateNty {
  107 + repeated string keys = 1;
  108 + models.Task task = 2;
  109 +}
  110 +
104 message RoleOpenBoxReq { 111 message RoleOpenBoxReq {
105 map<string,int32> costs = 1; 112 map<string,int32> costs = 1;
106 } 113 }