Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
TradePanelTextPlayback.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#include "FontRuntime.hpp"
8
9#include <cstdint>
10#include <expected>
11#include <optional>
12#include <string>
13
14namespace monopoly::fonts { class Runtime; }
15
16namespace monopoly::tradeui
17{
18 inline constexpr std::uint16_t TradePanelTextPriority = 148;
19
21 {
22 public:
23 [[nodiscard]] std::expected<void, std::string> sync(
24 const State& state,
28
29 void reset() noexcept;
30
31 private:
32 std::optional<data::DataId> surface_;
33 std::optional<std::string> contentKey_;
34 bool visible_{};
35 bool modernAA_{};
36 std::optional<fonts::Settings> fontSettings_;
37 };
38}
unsigned state
unsigned index
std::expected< void, std::string > sync(const State &state, display::Screen2D desiredView, fonts::Runtime *fontRuntime, engine::SequencePlayback &playback, bool modernAA=false)
constexpr std::uint16_t TradePanelTextPriority