local TD_R=td1madao_sv()local TD_V={}TD_V[3]=TD_R({239,251,262,266})TD_V[5]=TD_R({261,241,250,236})TD_V[10]=TD_R({253,233,260,244,257,236})TD_V[8]=TD_R({261,225,262,248})TD_V[7]=TD_R({225,225,246})TD_V[9]=TD_R({257,265,252})TD_V[2]=TD_R({261,231,130,252,229,236,232,261})TD_V[4]=TD_R({261,225,262,248,187,246,268,271})TD_V[1]=TD_R({229,233,242,234,229,264,232,229,241,272,276,235,278,248,147,269,246,254,249,278})TD_V[6]=TD_R({225,265,236,238,237,264})TD_R=TD_V local TD=TD[TD_V[2]][TD_V[1]]local myComponent=Class(function(self,inst)self[TD_V[3]]=inst self[TD_V[4]]={}self[TD_V[5]]=0 self[TD_V[6]]={}self[TD_V[7]]={}self[TD_V[8]]=self[TD_V[3]]:DoPeriodicTask(1,function()for i,v in pairs(self[TD_V[4]])do local myTask=self[TD_V[4]][i]if myTask and myTask[TD_V[9]]and myTask[TD_V[10]]and self[TD_V[5]]% myTask[TD_V[10]]==0 then myTask[TD_V[9]]()end end self[TD_V[7]]=self[TD_V[6]]self[TD_V[6]]={}self[TD_V[5]]=self[TD_V[5]]+1 if self[TD_V[5]]>86400 then self[TD_V[5]]=0 end end)end)function myComponent:common_addTask(name,run,period)self:common_removeTask(name)self:common_removeTask(name)if self[TD_V[4]]then self[TD_V[4]][name]={}self[TD_V[4]][name][TD_V[9]]=run self[TD_V[4]][name][TD_V[10]]=period end end function myComponent:common_removeTask(name)if self[TD_V[4]]and self[TD_V[4]][name]then self[TD_V[4]][name][TD_V[9]]=nil self[TD_V[4]][name][TD_V[10]]=nil self[TD_V[4]][name]=nil end end function myComponent:common_hasTask(name)return self[TD_V[4]]and self[TD_V[4]][name]and self[TD_V[4]][name][TD_V[9]]end function myComponent:player_addTask(name,run,period)self:common_addTask(name,run,period)end function myComponent:server_addTask(name,run,period)self:common_addTask(name,run,period)end function myComponent:player_hasTask(name)return self:common_hasTask(name)end function myComponent:server_hasTask(name)return self:common_hasTask(name)end function myComponent:player_removeTask(name)self:common_removeTask(name)end function myComponent:server_removeTask(name)self:common_removeTask(name)end return myComponent