Implement new configuration system

Replace current configuration mess with a trimmed down version of the
original vision of #200.  Configs are collection of config groups that
have fields that can be set.  These groups allow organizing the fields
as well as opertunity for plugins to add their own groups.  By default
plugins have an auto generated group with the enabled field.
This commit is contained in:
Hornwitser committed 2020-03-09 20:48:13 +01:00
1 parent 370ee9ed04
commit 5e5149dc93
24 files changed
+2364 -498

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ describe("Integration of lib/factorio/server", function() {
describe(".exampleSettings()", function() {
let settings;
it("returns an object", async function() {
settings = await factorio.FactorioServer.exampleSettings(path.join("factorio", "data"));
settings = await server.exampleSettings();
assert(typeof settings === "object");
});