Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
MousePointerPlayback.hpp
Go to the documentation of this file.
1#pragma once
2#include "MousePointer.hpp"
4
5namespace monopoly::mouse
6{
7 inline constexpr data::DataId PointerDataId =
9 // Main.cpp:349 mouse grouping priority; its sole child had priority 100.
10 inline constexpr std::uint16_t PointerPriority = 0xFFFF;
11
13 {
14 public:
15 [[nodiscard]] std::expected<void, std::string> sync(
17 // Reset only when the owning SequencePlayback is discarded.
18 void reset() noexcept;
19 [[nodiscard]] bool visible() const noexcept { return visible_; }
20 private:
21 bool visible_{};
22 int x_{};
23 int y_{};
24 sequence::Matrix2D authoredTransform_{sequence::identity2D()};
25 };
26}
unsigned state
unsigned index
std::expected< void, std::string > sync(const State &state, 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 PointerDataId
constexpr std::uint16_t PointerPriority
Matrix2D identity2D() noexcept