GE Lua Documentation

Press F to search!

getCurrentLevelCrawlPath

Definition


-- @/lua/ge/extensions/gameplay/crawl/saveSystem.lua:20

local function getCurrentLevelCrawlPath()
  local levelName = getCurrentLevelIdentifier()
  if not levelName then
    log('E', logTag, 'Could not determine current level')
    return nil
  end
  return '/levels/' .. levelName .. '/crawls/'
end

Callers

@/lua/ge/extensions/gameplay/crawl/saveSystem.lua
local function listFiles(levelPath, type)
  local path = levelPath or getCurrentLevelCrawlPath()
  if not path then
@/lua/ge/extensions/editor/crawlEditor/presets.lua

local function getCurrentLevelCrawlPath()
  local levelName = getCurrentLevelIdentifier()
function C:getAllTrailComponents()
  local levelPath = getCurrentLevelCrawlPath()
  return saveSystem.getAllTrailComponents(levelPath)
function C:getAllBoundaryComponents()
  local levelPath = getCurrentLevelCrawlPath()
  return saveSystem.getAllBoundaryComponents(levelPath)
function C:getAllPathnodeComponents()
  local levelPath = getCurrentLevelCrawlPath()
  return saveSystem.getAllPathnodeComponents(levelPath)
function C:loadTrailComponent(id)
  local levelPath = getCurrentLevelCrawlPath()
  return saveSystem.loadTrailComponent(id, levelPath)
function C:loadBoundaryComponent(id)
  local levelPath = getCurrentLevelCrawlPath()
  return saveSystem.loadBoundaryComponent(id, levelPath)
function C:loadPathnodeComponent(id)
  local levelPath = getCurrentLevelCrawlPath()
  return saveSystem.loadPathnodeComponent(id, levelPath)