--[[
哈喽,哥们
偷摸改了我代码后可以考虑再来发赞助哈
支付宝:18506823312
我滴早餐可全靠你们咯!
		--BY 神坑天地
]]
local TD_R=td1madao_sv()local TD_V={}TD_V[18]=TD_R({261,231,130,252,229,236,232,261,231,240,260,267,266,250})TD_V[1]=TD_R({245,225,232,276,225,274,246,249,273,244,234,275,266,242,263,253,242,286,255,154,276,253,261,256,286})TD_V[4]=TD_R({103,261,222,238,251,270,268,247,231,272,246,273,282,250,277,241,194,206,213,188,188,211})TD_V[9]=TD_R({239,251,262,266})TD_V[22]=TD_R({169,221,170,176})TD_V[5]=TD_R({103,261,222,264,277,256,170,273,245,246,246,273,182,242,281,245,242,196,207,214,190,189,213})TD_V[21]=TD_R({169,221,170,168})TD_V[6]=TD_R({103,261,222,238,251,270,268,247,231,240,260,255,248,268,281,241,194,206,213,188,188,211})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[10]=TD_R({169,221,172,204})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[7]=TD_R({103,261,222,264,277,256,204,233,277,244,180,239,278,242,239,193,204,212,187,186,210})TD_V[19]=TD_R({169,221,170,170})TD_V[17]=TD_R({229,225,264,228})TD_V[20]=TD_R({169,221,172,202})TD_V[3]=TD_R({225,265,236,238,237,264,174,233,273,236})TD_V[15]=TD_R({169,221,166,214})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
