Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
OptionsCustomBoardPlayback.hpp
Go to the documentation of this file.
1#pragma once
4namespace monopoly::fonts { class Runtime; }
6{
8 {
10 edition == data::BoardEdition::Usa ? 0x01C3 : 0x034D);
11 }
13 {
14 public:
15 [[nodiscard]] std::expected<void, std::string> sync(CustomBoardState& state,
17 void reset() noexcept;
18 private:
19 struct Object
20 {
21 data::DataId id{};
22 std::uint16_t priority{};
23 int x{}, y{};
24 bool operator==(const Object&) const = default;
25 };
26 std::array<std::optional<data::DataId>, 9> textSurfaces_{};
27 std::vector<Object> published_;
28 std::optional<std::uint64_t> revision_;
29 };
30}
std::uint16_t priority
unsigned state
unsigned index
std::expected< void, std::string > sync(CustomBoardState &state, display::Screen2D view, fonts::Runtime *fontRuntime, engine::SequencePlayback &playback)
std::uint32_t DataId
Definition DataBanks.hpp:10
constexpr DataId packDataId(std::uint16_t group, DataTag tag) noexcept
Definition DataBanks.hpp:39
constexpr data::DataId customBoardTitle(data::BoardEdition edition) noexcept