GE Lua Documentation

Press F to search!

getAllStrips

Definition


-- @/lua/ge/extensions/gameplay/drag/saveSystem.lua:545

M.getAllStrips = function()
  local strips = {}
  local levelPath = M.getCurrentLevelDragPath()
  if levelPath then
    local stripFiles = FS:findFiles(levelPath, "*.strip.json", -1, true, false)
    for _, file in ipairs(stripFiles) do
      local strip = jsonReadFile(file)
      if strip then
        strip._filePath = file
        table.insert(strips, strip)
      end
    end
  end
  return strips
end

Callers

@/lua/ge/extensions/editor/dragRaceEditor/strips.lua
M.loadAllStrips = function()
  allStrips = dragSaveSystem.getAllStrips()
  log('D', 'drag_race_editor', 'Loaded ' .. #allStrips .. ' strips')
@/lua/ge/extensions/editor/dragRaceEditor/facilities.lua
  local levelName = getCurrentLevelIdentifier()
  local allStrips = dragSaveSystem.getAllStrips()
  local stripNames = {}
@/lua/ge/extensions/gameplay/drag/saveSystem.lua
  local lanes = {}
  local strips = M.getAllStrips()
  for _, strip in ipairs(strips) do