Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
IBarBankPlayback.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "DataBanks.hpp"
5
6#include <cstdint>
7#include <expected>
8#include <string>
9
10namespace monopoly::ibar
11{
12 inline constexpr data::DataTag BankSequenceTag = 0x02F5;
13 inline constexpr std::uint16_t BankPriority = 256;
14 inline constexpr std::int32_t BankX = 755;
15 inline constexpr std::int32_t BankY = 560;
16
23
25 {
26 public:
27 [[nodiscard]] std::expected<void, std::string> sync(
28 bool visible,
29 bool hovered,
31
33 {
34 visible_ = false;
35 hovered_ = false;
36 }
37
39 {
40 return visible_;
41 }
42
44 {
45 return hovered_;
46 }
47
48 private:
49 bool visible_{};
50 bool hovered_{};
51 };
52}
unsigned index
bool visible() const noexcept
bool hovered() const noexcept
std::expected< void, std::string > sync(bool visible, bool hovered, engine::SequencePlayback &playback)
std::uint32_t DataId
Definition DataBanks.hpp:10
std::uint16_t DataTag
Definition DataBanks.hpp:11
constexpr DataId packDataId(std::uint16_t group, DataTag tag) noexcept
Definition DataBanks.hpp:39
constexpr std::uint16_t BankPriority
constexpr data::DataTag BankSequenceTag
constexpr std::int32_t BankY
constexpr std::int32_t BankX
constexpr data::DataId bankSequence() noexcept