Feature/mission refactor (#26)
* Refactored Mission classes to add Missions other than trigger zone missions. (eg. Runway Strikes, Resupply etc.) * Runway strike initial POC Co-authored-by: dutchie032 <dutchie032>
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
--- @class StageConfig
|
||||
--- @field isEnabled boolean
|
||||
--- @field isDrawStagesEnabled boolean
|
||||
--- @field isDrawPreActivatedEnabled boolean
|
||||
--- @field isAutoStages boolean
|
||||
--- @field startingStage integer
|
||||
--- @field maxMissionsPerStage integer
|
||||
--- @field logLevel LogLevel
|
||||
--- @field AmountPreactivateStage integer
|
||||
|
||||
|
||||
local StageConfig = {};
|
||||
@@ -24,13 +25,10 @@ function StageConfig:new()
|
||||
isAutoStages = SpearheadConfig.StageConfig.autoStages or true,
|
||||
startingStage = SpearheadConfig.StageConfig.startingStage or 1,
|
||||
maxMissionsPerStage = SpearheadConfig.StageConfig.maxMissionStage or 10,
|
||||
logLevel = "INFO"
|
||||
isDrawPreActivatedEnabled = SpearheadConfig.StageConfig.drawPreActivated or true,
|
||||
AmountPreactivateStage = SpearheadConfig.StageConfig.preactivateStage or 1,
|
||||
}
|
||||
|
||||
if SpearheadConfig.StageConfig.debugEnabled == true then
|
||||
o.logLevel = "DEBUG"
|
||||
end
|
||||
|
||||
|
||||
setmetatable(o, { __index = self })
|
||||
|
||||
return o;
|
||||
|
||||
Reference in New Issue
Block a user