mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Add settings and all prototypes to the export of data done. Settings are needed for a settings GUI to function, while prototype data would be useful to display any sort of information about things from the game.
9 lines
228 B
Lua
9 lines
228 B
Lua
local clusterio_api = require("clusterio_api")
|
|
|
|
log("Exporting settings")
|
|
for group, prototypes in pairs(data.raw) do
|
|
for name, prototype in pairs(prototypes) do
|
|
clusterio_api.send_json("settings_export", prototype)
|
|
end
|
|
end
|