GE Lua Documentation

Press F to search!

getAllStartingPositions

Definition


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

function M.getAllStartingPositions()
  local startingPositionFiles = M.getAllStartingPositionFiles()
  local startingPositions = {}
  for _, filePath in ipairs(startingPositionFiles) do
    local startingPosition = M.getStartingPositionById(filePath)
    if startingPosition then
      table.insert(startingPositions, startingPosition)
    end
  end
  return startingPositions
end

Callers

@/lua/ge/extensions/editor/crawlEditor/trails.lua

  local allStartingPositions = gameplay_crawl_saveSystem.getAllStartingPositions()
  local currentStartingPosition = nil

    local allStartingPositions = gameplay_crawl_saveSystem.getAllStartingPositions()
    local currentReversedStartingPosition = nil
@/lua/ge/extensions/gameplay/crawl/crawlFlowgraphBridge.lua
M.getAllStartingPositions = function()
  return gameplay_crawl_saveSystem.getAllStartingPositions()
end
@/lua/ge/extensions/gameplay/crawl/flowgraphBridge.lua
M.getAllStartingPositions = function()
  return gameplay_crawl_saveSystem.getAllStartingPositions()
end
@/lua/ge/extensions/editor/crawlEditor/startingPositions.lua
  if editor_crawlEditor and editor_crawlEditor.markAsDirty then
    local allStartingPositions = editor_crawlEditor.getAllStartingPositions()
    for i, sp in ipairs(allStartingPositions) do