Cancel and resume durable production orders from the Works menu
This commit is contained in:
1 parent
e5d01a4ecd
commit
b5f75d3c13
7 files changed
+779
-2
No files matched your search
@@ -74,6 +74,12 @@ CommandStatus CommandDispatcher::apply(World& world, TrustedClient client, const
|
||||
}
|
||||
|
||||
if (client.player != colony_host) return CommandStatus::Unauthorized;
|
||||
if (const auto* payload = std::get_if<CancelProductionPayload>(&command.payload)) {
|
||||
return world.cancel_production(payload->production);
|
||||
}
|
||||
if (const auto* payload = std::get_if<ResumeProductionPayload>(&command.payload)) {
|
||||
return world.resume_production(payload->production);
|
||||
}
|
||||
if (world.scenario_active()) return CommandStatus::Unavailable;
|
||||
const auto& payload = std::get<LegacyCabinPayload>(command.payload);
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user