PGRData/Script/matrix/xentity/xguilddorm/furniture/events/XGDFBaseEvent.lua

30 lines
475 B
Lua
Raw Permalink Normal View History

--=============
--家具事件基类
--=============
2024-09-01 20:49:41 +00:00
---@class XGDFBaseEvent
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