mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Add load scenario command
Add alternative method of starting an instance by loading a scenario. Since there's no save when starting a scenario it can only be used if the save patching is disabled.
This commit is contained in:
1 parent
9458155a1b
commit
8c6130adba
4 files changed
+99
-11
No files matched your search
@@ -418,6 +418,16 @@ messages.createSave = new Request({
|
||||
forwardTo: "instance",
|
||||
});
|
||||
|
||||
messages.loadScenario = new Request({
|
||||
type: "load_scenario",
|
||||
links: ["control-master", "master-slave", "slave-instance"],
|
||||
permission: "core.instance.load_scenario",
|
||||
forwardTo: "instance",
|
||||
requestProperties: {
|
||||
"scenario": { type: "string" },
|
||||
},
|
||||
});
|
||||
|
||||
messages.exportData = new Request({
|
||||
type: "export_data",
|
||||
links: ["control-master", "master-slave", "slave-instance"],
|
||||
|
||||
@@ -318,6 +318,11 @@ definePermission({
|
||||
title: "Start instance",
|
||||
description: "Start instances.",
|
||||
});
|
||||
definePermission({
|
||||
name: "core.instance.load_scenario",
|
||||
title: "Load scenario",
|
||||
description: "Start instances by loading a scenario.",
|
||||
});
|
||||
definePermission({
|
||||
name: "core.instance.stop",
|
||||
title: "Stop instance",
|
||||
|
||||
Reference in new issue
Block a user