﻿-- chunkname: @scripts/settings/mission/mission_templates.lua

local mission_templates = {}

local function _extract_mission_templates(path)
	local missions = require(path)

	for name, mission in pairs(missions) do
		mission.name = name
		mission_templates[name] = mission
	end
end

_extract_mission_templates("scripts/settings/mission/templates/dust_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/entertainment_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/operations_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/hub_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/onboarding_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/prologue_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/tank_foundry_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/throneside_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/transit_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/horde_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/void_mission_templates")
_extract_mission_templates("scripts/settings/mission/templates/watertown_mission_templates")

return settings("MissionTemplates", mission_templates)
