refactor: adFieldWork delt i adFieldStore/adFieldRefill, follow/dispatch/beginWork i faser, fælles adUtil — 1.62.285
Ingen ændret opførsel. adFieldWork.lua 3087 -> 2598 linjer; lager/salg og ballemål i adFieldStore.lua, påfyldningssteder i adFieldRefill.lua (begge på ADFieldWork-tabellen, indlæses efter adFieldWork). follow (296), dispatch (232) og beginWork (164 linjer) delt i én funktion pr. fase/trin. Ny adUtil.lua erstatter 28 enslydende lokale hjælpere i 22 filer. Alle 93 testfiler grønne; code-review uden fund over LOW.
This commit is contained in:
@@ -18,11 +18,7 @@ function ADNames.fromRecords(records)
|
||||
return byId
|
||||
end
|
||||
|
||||
local function getPath()
|
||||
local path = ADRunsStorage ~= nil and ADRunsStorage.getPath() or nil
|
||||
if path == nil then return nil end
|
||||
return (path:gsub(ADRunsStorage.FILE_NAME .. "$", ADNames.FILE_NAME))
|
||||
end
|
||||
local function getPath() return ADUtil.savePath(ADNames.FILE_NAME) end
|
||||
|
||||
function ADNames.load()
|
||||
ADNames.byId = {}
|
||||
|
||||
Reference in New Issue
Block a user