feat: udkørsel "Lever også til" (fodring med samme vogn) + låst traktor og vogn til flowet

This commit is contained in:
2026-10-20 12:29:17 +02:00
parent d074a0640a
commit 34f47dffc8
18 changed files with 340 additions and 27 deletions
+5
View File
@@ -46,6 +46,9 @@ function ADRunsStorage.writeRecords(xmlFile, records)
xmlFile:setString(key .. "#sourceBuildings", record.sourceBuildings or "")
xmlFile:setString(key .. "#targetBuildings", record.targetBuildings or "")
xmlFile:setString(key .. "#storeBuildings", record.storeBuildings or "")
-- udkørsel: "Lever også til" + låst sæt (20/10)
xmlFile:setString(key .. "#feedBuildings", record.feedBuildings or "")
xmlFile:setInt(key .. "#lockSet", record.lockSet or 0)
xmlFile:setString(key .. "#products", record.products or "")
xmlFile:setInt(key .. "#sellAt", record.sellAt or ADRuns.DEFAULT_SELL_AT_PERCENT)
xmlFile:setInt(key .. "#storeAbove", record.storeAbove or ADRuns.DEFAULT_STORE_ABOVE_PERCENT)
@@ -90,6 +93,8 @@ function ADRunsStorage.readRecords(xmlFile)
sourceBuildings = xmlFile:getString(key .. "#sourceBuildings"),
targetBuildings = xmlFile:getString(key .. "#targetBuildings"),
storeBuildings = xmlFile:getString(key .. "#storeBuildings"),
feedBuildings = xmlFile:getString(key .. "#feedBuildings"), -- nil i gemme fra før feltet
lockSet = xmlFile:getInt(key .. "#lockSet"),
products = xmlFile:getString(key .. "#products"),
sellAt = xmlFile:getInt(key .. "#sellAt"),
storeAbove = xmlFile:getInt(key .. "#storeAbove"),