2023-07-14 19:35:33 +00:00
|
|
|
--=============
|
|
|
|
--家具事件基类
|
|
|
|
--=============
|
2024-09-01 20:49:41 +00:00
|
|
|
---@class XGDFBaseEvent
|
2023-07-14 19:35:33 +00:00
|
|
|
local XGDFBaseEvent = XClass(nil, "XGDFBaseEvent")
|
|
|
|
|
|
|
|
function XGDFBaseEvent:Ctor(cb)
|
|
|
|
self.CallBack = cb
|
|
|
|
self:Init()
|
|
|
|
end
|
|
|
|
|
|
|
|
function XGDFBaseEvent:Init()
|
|
|
|
self:CheckOnce()
|
|
|
|
end
|
|
|
|
|
|
|
|
function XGDFBaseEvent:CheckOnce()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function XGDFBaseEvent:Trigger(value)
|
|
|
|
if self.CallBack then
|
|
|
|
self.CallBack(value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function XGDFBaseEvent:Dispose()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return XGDFBaseEvent
|