getAllWaypoints
Definition
-- @/lua/ge/extensions/gameplay/drag/saveSystem.lua:576
M.getAllWaypoints = function()
local waypoints = {}
local lanes = M.getAllLanes()
for _, lane in ipairs(lanes) do
if lane.waypoints then
for _, waypoint in ipairs(lane.waypoints) do
waypoint._laneId = lane.id
waypoint._laneName = lane.shortName
table.insert(waypoints, waypoint)
end
end
end
return waypoints
end
Callers
@/lua/ge/extensions/editor/dragRaceEditor/waypoints.lua
M.loadAllWaypoints = function()
allWaypoints = dragSaveSystem.getAllWaypoints()
log('D', 'drag_race_editor', 'Loaded ' .. #allWaypoints .. ' waypoints')