Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
StatsDeedFloaterTextPlayback.hpp
Go to the documentation of this file.
1#pragma once
2
5#include "FontRuntime.hpp"
6
7#include <expected>
8#include <optional>
9#include <string>
10
11namespace monopoly::fonts { class Runtime; }
12
13namespace monopoly::statsui
14{
15 inline constexpr std::uint16_t DeedFloaterTextPriority = 601;
16
18 {
19 public:
20 [[nodiscard]] std::expected<void, std::string> sync(
21 const State& state,
24 int monetarySystem,
28 bool modernAA = false);
29
30 void reset() noexcept;
31
32 private:
33 std::optional<data::DataId> surface_;
34 std::optional<std::string> contentKey_;
35 std::optional<fonts::Settings> fontSettings_;
36 bool modernAA_{};
37 int currentX_{};
38 bool visible_{};
39 };
40}
unsigned state
unsigned index
std::expected< void, std::string > sync(const State &state, const rules::GameState &gameState, const PlayerPlaybackInputs &inputs, int monetarySystem, display::Screen2D desiredView, fonts::Runtime *fontRuntime, engine::SequencePlayback &playback, bool deedPopupVisible=false, bool modernAA=false)
constexpr std::uint16_t DeedFloaterTextPriority