Complete Modern game setup and manager selection with staged confirmation (by Codex)

This commit is contained in:
Codex committed 2026-10-26 09:50:22 +01:00
1 parent a0bb8b47dc
commit 967520190d
18 files changed
+1784 -531

No files matched your search

+7
View File
@@ -1,8 +1,13 @@
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include "modern/ui/catalog.hpp"
#include <optional>
#include <string_view>
namespace bmh::modern_ui {
// Shared UI/model boundary: valid UTF-8, trimmed Unicode whitespace, no control
// characters, at most 24 codepoints. Invalid input has no normalized value.
std::optional<std::string> normalized_manager_name(std::string_view);
struct Snapshot {
uint64_t revision = 0;
std::shared_ptr<const Catalog> world;
@@ -37,6 +42,8 @@ class DemoSource final : public DataSource {
public:
explicit DemoSource(std::shared_ptr<const Catalog>);
Snapshot snapshot() const override;
// "start" publishes {setup,managers} together; setup is kept in edits.setup
// for checkpoint compatibility. It creates presentation state only.
ActionResult apply(const Action &) override;
Json read_almanac(const Json &) const override;
Json read_statistics(const Json &) const override;