52 void reset()
noexcept;
55 {
return activeBackdrop_; }
56 [[
nodiscard]]
const std::array<BoardBackdropBuffer, MainBoardBufferCount>&
59 {
return currentMainBuffer_; }
61 {
return tradeSurface_; }
64 [[
nodiscard]] std::expected<void, std::string> ensureSurfaces(
66 [[
nodiscard]] std::expected<data::LegacyBitmapRGBA8, std::string>
68 [[
nodiscard]] std::expected<data::LegacyBitmapRGBA8, std::string>
69 loadCustomBoardBitmap(std::uint32_t camera,
70 const std::filesystem::path& customRoot,
72 [[
nodiscard]] std::expected<void, std::string> validateCustomBoardSet(
73 const std::filesystem::path& customRoot,
75 [[
nodiscard]] std::expected<void, std::string> compileImageInto(
78 [[
nodiscard]] std::expected<void, std::string> compileInto(
81 [[
nodiscard]] std::expected<data::DataId, std::string> selectBackdrop(
83 std::uint32_t tick,
const std::filesystem::path& customRoot,
86 std::array<BoardBackdropBuffer, MainBoardBufferCount> mainBuffers_{};
88 std::optional<std::size_t> currentMainBuffer_;
91 std::optional<int> currentCity_;
92 std::optional<pieces::BoardCameraView> currentCamera_;
93 std::filesystem::path currentCustomRoot_;
94 std::filesystem::path validatedCustomRoot_;
95 bool surfacesReady_{};