getAllTrails
Definition
-- @/lua/ge/extensions/gameplay/crawl/saveSystem.lua:631
-- Getter functions for all objects
function M.getAllTrails()
local trailFiles = M.getAllTrailFiles()
local trails = {}
for _, filePath in ipairs(trailFiles) do
local trail = M.getTrailById(filePath)
if trail then
table.insert(trails, trail)
end
end
return trails
end
Callers
@/lua/ge/extensions/gameplay/crawl/saveSystem.lua
-- Get all trails from the save system
local allTrails = M.getAllTrails()
@/lua/ge/extensions/gameplay/crawl/general.lua
local function onGetRawPoiListForLevel(levelIdentifier, elements)
local trails = gameplay_crawl_saveSystem.getAllTrails()
if trails and not M.activeTrail and (career_career.isActive() or settings.getValue("enableCrawlInFreeroam")) then
@/lua/ge/extensions/gameplay/crawl/flowgraphBridge.lua
M.getAllTrails = function()
return gameplay_crawl_saveSystem.getAllTrails()
end
@/lua/ge/extensions/gameplay/crawl/crawlFlowgraphBridge.lua
M.getAllTrails = function()
return gameplay_crawl_saveSystem.getAllTrails()
end
@/lua/ge/extensions/editor/crawlEditor/trails.lua
if editor_crawlEditor and editor_crawlEditor.markAsDirty then
local allTrails = editor_crawlEditor.getAllTrails()
local missionTrails = editor_crawlEditor.getAllMissionTrails()