Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
TradeContractTextPlayback.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "DataBanks.hpp"
4#include "Display.hpp"
6#include "TradeUI.hpp"
7
8#include <cstdint>
9#include <expected>
10#include <optional>
11#include <string>
12
13namespace monopoly::fonts { class Runtime; }
14
15namespace monopoly::tradeui
16{
17 // UDTrade_ProcessEverything starts rightpanel at 148, independently of
18 // FutureTradeDlg.priority (524), which is used to place the arrows at 525.
19 inline constexpr std::uint16_t TradeContractTextPriority = 148;
20
22 {
23 public:
24 [[nodiscard]] std::expected<void, std::string> sync(
25 const State& state,
28 int city,
31
32 void reset() noexcept;
33
34 private:
35 std::optional<data::DataId> surface_;
36 std::optional<std::string> contentKey_;
37 bool visible_{};
38 };
39}
unsigned state
unsigned index
std::expected< void, std::string > sync(const State &state, const rules::GameState &gameState, display::Screen2D desiredView, int city, fonts::Runtime *fontRuntime, engine::SequencePlayback &playback)
constexpr std::uint16_t TradeContractTextPriority