getMissionTypes
Definition
-- @/lua/ge/extensions/gameplay/missions/missions.lua:81
local function getMissionTypes()
if not missionTypes then
missionTypes = {}
for _,missionFile in ipairs(FS:findFiles(missionTypesDir, missionTypeConstructorFilename..'.lua', 1, false, true)) do
local dir,_,_ = path.splitWithoutExt(missionFile)
local splitPath = split(dir,'/')
local missionType = splitPath[#splitPath-1]
table.insert(missionTypes, missionType)
end
end
return missionTypes
end
Callers
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
self.missionTypes = gameplay_missions_missions.getMissionTypes()
table.sort(self.missionTypes)