Port lineup and transfer market to the native Modern UI (by Codex)

This commit is contained in:
Codex committed 2026-10-25 10:23:53 +01:00
1 parent ec1d804d08
commit bf3f910437
33 files changed
+3339 -29

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include "modern/ui/catalog.hpp"
namespace bmh::modern_ui {
// Presentation-only search, listings and provisional orders. No player, cash,
// contract, session or RNG is changed. Model money is minor units; submit and
// criteria editor actions use whole displayed units (including seven bonuses).
Json demo_transfer(const Catalog &, const std::string &club);
bool migrate_demo_transfer(Json &full_state, const Catalog &, const std::string &club);
bool valid_demo_transfer(const Json &full_state, const Catalog &, const std::string &club);
std::string edit_demo_transfer(Json &full_state, const Json &action, const Catalog &, const std::string &club);
Json demo_transfer_view(const Json &full_state, const Catalog &, const std::string &club);
Json demo_transfer_player(const Json &full_state, const Catalog &, const std::string &club, const std::string &player);
Json demo_transfer_roster(const Json &full_state, const Catalog &, const std::string &club, const std::string &source_club);
Json demo_transfer_quote(const Json &full_state, const Json &request, const Catalog &, const std::string &club);
// Active IDs come from the lineup source; the transfer module never creates XI.
Json demo_transfer_strengths(const Json &full_state, const Catalog &, const std::string &club, const Json &active_ids);
Json demo_transfer_suggestion(const Json &full_state, const Catalog &, const std::string &club, const Json &active_ids);
} // namespace bmh::modern_ui