Update impl.lua

This commit is contained in:
Lorraxs 2023-12-11 14:22:19 +07:00
parent 45954df5be
commit e635f0fa9a

View File

@ -281,9 +281,14 @@ function Impl:LogWarning(msg, ...)
main:LogWarning("[^6"..self.name.."^0] "..msg, ...) main:LogWarning("[^6"..self.name.."^0] "..msg, ...)
end end
function Impl:GetConfig()
return self.config
end
function NewImpl(name) function NewImpl(name)
local impl = Impl:extend({ local impl = Impl:extend({
name = name name = name,
config = Config[name] or {},
}) })
main:RegisterImpl(name, impl) main:RegisterImpl(name, impl)
return impl return impl