feat: kørsler følger markørnavne efter AD-omnummerering (v1.62.135)

This commit is contained in:
2026-10-10 01:36:54 +02:00
parent 10cc8c12a5
commit f3f3bdb80b
5 changed files with 72 additions and 3 deletions
+5
View File
@@ -39,6 +39,9 @@ function ADRunsStorage.writeRecords(xmlFile, records)
-- v2: udkørsel
xmlFile:setString(key .. "#kind", record.kind or "supply")
xmlFile:setString(key .. "#sources", record.sources or "")
-- v4: markørnavne (følger markøren, når AutoDrive omnummererer vejpunkter)
xmlFile:setString(key .. "#sourceNames", record.sourceNames or "")
xmlFile:setString(key .. "#targetNames", record.targetNames or "")
-- v3: bygninger (flow-tavlen)
xmlFile:setString(key .. "#sourceBuildings", record.sourceBuildings or "")
xmlFile:setString(key .. "#targetBuildings", record.targetBuildings or "")
@@ -75,6 +78,8 @@ function ADRunsStorage.readRecords(xmlFile)
returnBelow = xmlFile:getInt(key .. "#returnBelow"),
kind = xmlFile:getString(key .. "#kind"),
sources = xmlFile:getString(key .. "#sources"),
sourceNames = xmlFile:getString(key .. "#sourceNames"),
targetNames = xmlFile:getString(key .. "#targetNames"),
sourceBuildings = xmlFile:getString(key .. "#sourceBuildings"),
targetBuildings = xmlFile:getString(key .. "#targetBuildings"),
storeBuildings = xmlFile:getString(key .. "#storeBuildings"),