From looking at the code, it seems like the stdlib
stuff doesn't really do much interaction with storage
, and even then it seems limited to just trains.
I imagine most of the difficulty will come from:
- checkAndTickInGlobal
- callInGlobal
- setMetatablesInGlobal
- insertInGlobal
Along with any direct access of storage
that assumes the returned table contains function definitions, e.g:
for k, curHeli in pairs(storage.helis) do
if not curHeli.curState then
if curHeli.goUp then
curHeli:changeState(curHeli.engineStarting) -- changeState() can't exist on deserialised helicopters
else
curHeli:changeState(curHeli.descend) -- changeState() can't exist on deserialised helicopters
end
end
end