This commit is contained in:
2024-10-11 20:12:56 +02:00
parent e42eab8609
commit 958503fb30
8 changed files with 33 additions and 17 deletions
+2
View File
@@ -51,4 +51,6 @@ function CapConfig:new()
return o;
end
if not Spearhead.internal then Spearhead.internal = {} end
Spearhead.internal.configuration.CapConfig = CapConfig;
+14 -2
View File
@@ -9,10 +9,22 @@ function StageConfig:new()
local enabled = SpearheadConfig.StageConfig.enabled or true
---@return boolean
o.isEnabled = function() return enabled == true end
o.isEnabled = function(self) return enabled == true end
local drawStages = SpearheadConfig.StageConfig.drawStages or true
---@return boolean
o.isDrawStagesEnabled = function(self) return drawStages == true end
local autoStages = SpearheadConfig.StageConfig.autoStages or true
---@return boolean
o.isAutoStages = function(self) return autoStages end
local maxMissionsPerStage = SpearheadConfig.StageConfig.maxMissionStage
o.getMaxMissionPerStage = function(self) return maxMissionsPerStage end
o.logLevel = Spearhead.LoggerTemplate.LogLevelOptions.INFO
return o;
end
if not Spearhead.internal then Spearhead.internal = {} end
Spearhead.internal.configuration.StageConfig = StageConfig;