Bind confirmed bank and ticket actions to real careers (by Codex)
This commit is contained in:
1 parent
f75e0f8e49
commit
dcf42f2da7
23 files changed
+535
-56
No files matched your search
@@ -30,7 +30,7 @@ std::shared_ptr<EngineBridge> EngineBridge::open(const fs::path &world, const fs
|
||||
}
|
||||
Json EngineBridge::snapshot() const {
|
||||
Json bundle = Json::object();
|
||||
for (const auto *kind : {"session", "desktop", "camps", "squad", "lineup", "tactics", "training"})
|
||||
for (const auto *kind : {"session", "desktop", "camps", "squad", "lineup", "tactics", "training", "bank", "stadium", "credit"})
|
||||
bundle[kind] = from_engine(impl_->session->ui_read(cli::Json::Object{{"kind", kind}}, impl_->revision));
|
||||
validate_engine_desk(bundle);
|
||||
return bundle;
|
||||
@@ -38,6 +38,9 @@ Json EngineBridge::snapshot() const {
|
||||
Json EngineBridge::command(const Json &request) {
|
||||
return from_engine(impl_->session->ui_command(cli::parse_json(request.dump()), impl_->revision));
|
||||
}
|
||||
Json EngineBridge::read(const Json &request) const {
|
||||
return from_engine(impl_->session->ui_read(cli::parse_json(request.dump()), impl_->revision));
|
||||
}
|
||||
Json EngineBridge::save_copy(const fs::path &path) {
|
||||
if (fs::weakly_canonical(path) == impl_->input || fs::exists(path))
|
||||
throw editor::Error("Bitte eine neue Datei wählen. Der geladene Spielstand wird nicht überschrieben.");
|
||||
|
||||
Reference in new issue
Block a user