cap config implemented in cap groups and bases

This commit is contained in:
2024-10-11 16:42:57 +02:00
parent 5fd070fb68
commit e42eab8609
+18
View File
@@ -0,0 +1,18 @@
local StageConfig = {};
function StageConfig:new()
local o = {}
setmetatable(o, { __index = self })
if SpearheadConfig == nil then SpearheadConfig = {} end
if SpearheadConfig.StageConfig == nil then SpearheadConfig.StageConfig = {} end
local enabled = SpearheadConfig.StageConfig.enabled or true
---@return boolean
o.isEnabled = function() return enabled == true end
o.logLevel = Spearhead.LoggerTemplate.LogLevelOptions.INFO
return o;
end
Spearhead.internal.configuration.StageConfig = StageConfig;