Bind native desk and training camps to Modern OBS careers (by Codex)

This commit is contained in:
Codex committed 2026-10-27 22:00:10 +01:00
1 parent 1fb6499b15
commit 85a1fe5a95
19 files changed
+733 -46

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include "modern/ui/catalog.hpp"
#include <memory>
namespace bmh::modern_ui {
// Engine DTOs remain separate from DemoSource's presentation checkpoints.
void validate_engine_desk(const Json &bundle);
int64_t engine_money_minor(const Json &money);
Json engine_camp_command(const Json &bundle, const std::string &camp,
const Json &focus, const std::string &request_id);
// Single-session facade. Its owner serializes all calls on a background worker.
// No RmlUI objects or callbacks cross this boundary.
class EngineBridge {
public:
static std::shared_ptr<EngineBridge> open(const fs::path &world, const fs::path &save);
~EngineBridge();
Json snapshot() const;
Json command(const Json &request);
Json save_copy(const fs::path &path);
private:
struct Impl;
explicit EngineBridge(std::unique_ptr<Impl>);
std::unique_ptr<Impl> impl_;
};
struct EngineReply {
std::shared_ptr<EngineBridge> connection;
Json bundle, response;
std::shared_ptr<const Catalog> catalog;
};
} // namespace bmh::modern_ui