feat: run-indstilling 'Kør hjem fra Wait under X %' (10–90, standard 50) i model, XML, Wait-regel og fane (v1.10.2.0)
This commit is contained in:
@@ -34,6 +34,7 @@ function ADRunsStorage.writeRecords(xmlFile, records)
|
||||
xmlFile:setString(key .. "#ingredients", record.ingredients)
|
||||
xmlFile:setString(key .. "#waitPool", record.waitPool)
|
||||
xmlFile:setInt(key .. "#loops", record.loops)
|
||||
xmlFile:setInt(key .. "#returnBelow", record.returnBelow or ADRuns.DEFAULT_RETURN_BELOW_PERCENT)
|
||||
for vehicleIndex, vehicleId in ipairs(record.vehicleIds) do
|
||||
xmlFile:setString(string.format("%s.vehicle(%d)#id", key, vehicleIndex - 1), vehicleId)
|
||||
end
|
||||
@@ -51,6 +52,7 @@ function ADRunsStorage.readRecords(xmlFile)
|
||||
ingredients = xmlFile:getString(key .. "#ingredients"),
|
||||
waitPool = xmlFile:getString(key .. "#waitPool"),
|
||||
loops = xmlFile:getInt(key .. "#loops"),
|
||||
returnBelow = xmlFile:getInt(key .. "#returnBelow"),
|
||||
vehicleIds = {},
|
||||
}
|
||||
xmlFile:iterate(key .. ".vehicle", function(_, vehicleKey)
|
||||
|
||||
Reference in New Issue
Block a user