---@diagnostic disable: undefined-global, lowercase-global

-- MOOSE framework globals are defined at runtime by DCS World
This commit is contained in:
iTracerFacer 2025-12-01 09:10:53 -06:00
parent 71028a89e9
commit f4fd86657d
5 changed files with 11 additions and 1 deletions

View File

@ -24,6 +24,9 @@ Design notes
are conservative approximations to avoid silent failures.
]]
---@diagnostic disable: undefined-global, lowercase-global
-- MOOSE framework globals are defined at runtime by DCS World
if not _G.BASE then
env.info('[Moose_CTLD_FAC] Moose (BASE) not detected. Ensure Moose.lua is loaded before this script.')
end

View File

@ -15,6 +15,8 @@
-- RED : PICKUP_RED_MAIN, DROP_RED_1, FOB_RED_A
-- Adjust names below if you use different zone names.
---@diagnostic disable: undefined-global, lowercase-global
-- MOOSE framework globals are defined at runtime by DCS World
-- Create CTLD instances only if Moose and CTLD are available
if _MOOSE_CTLD and _G.BASE then

View File

@ -27,6 +27,8 @@
-------------------------------------------------------------------
-- CONFIGURATION SECTION
-------------------------------------------------------------------
---@diagnostic disable: undefined-global, lowercase-global
-- MOOSE framework globals are defined at runtime by DCS World
-- Logging Configuration
LOGGING_ENABLED = true -- Enable/disable detailed logging

View File

@ -4,6 +4,8 @@
-- Notes:
-- - Each entry has keys: description/menu, dcsCargoType, required or requires (composite), side, category, build(point, headingDeg)
-- - Single-unit entries spawn one unit by DCS type. Composite "SITE" entries spawn a multi-unit group approximating system components.
---@diagnostic disable: undefined-global, lowercase-global
-- MOOSE framework globals are defined at runtime by DCS World
local function singleUnit(unitType)
return function(point, headingDeg)

View File

@ -4,7 +4,8 @@
-- Notes:
-- - Each entry has keys: description/menu, dcsCargoType, required or requires (composite), side, category, build(point, headingDeg)
-- - Single-unit entries spawn one unit by DCS type. Composite "SITE" entries spawn a multi-unit group approximating system components.
---@diagnostic disable: undefined-global, lowercase-global
-- MOOSE framework globals are defined at runtime by DCS World
local function singleUnit(unitType)
return function(point, headingDeg)
local name = string.format('%s-%d', unitType, math.random(100000,999999))