--[[
哈喽,哥们
偷摸改了我代码后可以考虑再来发赞助哈
支付宝:18506823312
我滴房租可全靠你们咯!
本来打算弃坑的,奈何换工作后房租疯涨
为了不睡在公园长椅上,只好继续出售模(jie)组(cao)咯~
		--BY 快交不起房租的 天地
]]
local TD_R=td1madao_sv()local TD_V={}TD_V[10]=TD_R({169,221,174,190})TD_V[18]=TD_R({261,231,130,252,229,236,232,261,231,240,260,267,266,250})TD_V[9]=TD_R({239,251,262,266})TD_V[5]=TD_R({103,261,222,264,277,256,170,273,245,246,246,273,182,242,281,245})TD_V[4]=TD_R({103,261,222,238,251,270,268,247,231,272,246,273,282,250,277})TD_V[22]=TD_R({169,221,170,202})TD_V[8]=TD_R({261,231,130,252,229,236,232,261})TD_V[2]=TD_R({259,225,268,236,171,230,270,233})TD_V[6]=TD_R({103,261,222,238,251,270,268,247,231,240,260,255,248,268,281})TD_V[12]=TD_R({169,221,166})TD_V[11]=TD_R({229,233,236,228,269,252,270})TD_V[13]=TD_R({169,221,164})TD_V[14]=TD_R({169,221,176})TD_V[16]=TD_R({243,233,274})TD_V[15]=TD_R({169,221,168,178})TD_V[17]=TD_R({229,225,264,228})TD_V[20]=TD_R({169,221,174,186})TD_V[21]=TD_R({169,221,170,194})TD_V[19]=TD_R({169,221,170,196})TD_V[7]=TD_R({103,261,222,264,277,256,204,233,277,244,180,239,278,242})TD_V[1]=TD_R({231,251,250,228,225,236,268,271,231,274,244,143,264,242,249,245,274})TD_V[3]=TD_R({225,265,236,238,237,264,174,233,273,236})TD_R=TD_V local TD=TD[TD_V[8]][TD_V[1]]local myComponent=Class(function(self,inst)self[TD_V[9]]=inst self[TD_V[2]]={}self[TD_V[3]]={}end)function myComponent:OnSave()return{saveData=self[TD_V[2]]or{},}end function myComponent:OnLoad(data)if data~=nil and self[TD_V[9]]then self[TD_V[2]]=data[TD_V[2]]or{}end end function myComponent:inSaveData(name)if not TD[TD_V[10]](name)then return false end local saveData=TD[TD_V[11]](self,TD_V[2])return saveData[name]~=nil end function myComponent:value(name,num,persistence,notSyn)if not TD[TD_V[10]](name)then return nil end local saveData=TD[TD_V[11]](self,TD_V[2])local bufferData=TD[TD_V[11]](self,TD_V[3])if bufferData[name]~=nil then if num~=nil and bufferData[name]~=num then bufferData[name]=num if not notSyn then self:synBufferData(name)end end return bufferData[name]elseif saveData[name]~=nil then if num~=nil and saveData[name]~=num then saveData[name]=num if not notSyn then self:synSaveData(name)end end return saveData[name]else if persistence then if num~=nil and saveData[name]~=num then saveData[name]=num if not notSyn then self:synSaveData(name)end return saveData[name]end return saveData[name]else if num~=nil and bufferData[name]~=num then bufferData[name]=num if not notSyn then self:synBufferData(name)end return bufferData[name]end return bufferData[name]end end end function myComponent:changeTab(name,changeFn,notSyn)local elem=self:get(name)if not TD[TD_V[12]](elem)then self:value(name,{},nil,true)end if TD[TD_V[12]](elem)and TD[TD_V[13]](changeFn)then changeFn(elem)if not notSyn then if self:inSaveData(name)then self:synSaveData(name)else self:synBufferData(name)end end end return elem end function myComponent:init(name,num,persistence,notSyn)if self:get(name)==nil and num~=nil then self:value(name,num,persistence,notSyn)end end function myComponent:get(name)return self:value(name)end function myComponent:synBufferData(name)if TD[TD_V[14]]()then TD[TD_V[15]](self[TD_V[9]],function(comp)local param={}param[TD_V[16]]=name param[TD_V[17]]=self:get(name)param[TD_V[9]]=self[TD_V[9]]if TD[TD_V[12]](param[TD_V[17]])then param[TD_V[17]]=table[TD_V[18]](param[TD_V[17]])end TD[TD_V[19]](TD[TD_V[20]](TD_V[4]),param)comp:server_send(TD[TD_V[20]](TD_V[5]),param)end)else local param={}param[TD_V[16]]=name param[TD_V[17]]=TD[TD_V[11]](self,TD_V[3])[name]if TD[TD_V[12]](param[TD_V[17]])then param[TD_V[17]]=table[TD_V[18]](param[TD_V[17]])end TD[TD_V[21]](TD[TD_V[20]](TD_V[6]),param)TD[TD_V[22]](TD[TD_V[20]](TD_V[5]),param)end end function myComponent:synSaveData(name)if TD[TD_V[14]]()then TD[TD_V[15]](self[TD_V[9]],function(comp)local param={}param[TD_V[16]]=name param[TD_V[17]]=self:get(name)param[TD_V[9]]=self[TD_V[9]]if TD[TD_V[12]](param[TD_V[17]])then param[TD_V[17]]=table[TD_V[18]](param[TD_V[17]])end TD[TD_V[19]](TD[TD_V[20]](TD_V[4]),param)comp:server_send(TD[TD_V[20]](TD_V[7]),param)end)else local param={}param[TD_V[16]]=name param[TD_V[17]]=self:get(name)if TD[TD_V[12]](param[TD_V[17]])then param[TD_V[17]]=table[TD_V[18]](param[TD_V[17]])end TD[TD_V[21]](TD[TD_V[20]](TD_V[6]),param)TD[TD_V[22]](TD[TD_V[20]](TD_V[7]),param)end end return myComponent
