Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
OptionsCustomBoardRuntime.hpp File Reference
#include "OptionsUI.hpp"
#include "ResourceRuntime.hpp"
#include <array>
#include <expected>
#include <filesystem>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for OptionsCustomBoardRuntime.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monopoly::optionsui::CustomBoardEntry
 
struct  monopoly::optionsui::CustomBoardState
 
struct  monopoly::optionsui::CustomBoardSelection
 
struct  monopoly::optionsui::CustomBoardInput
 

Namespaces

namespace  monopoly
 
namespace  monopoly::optionsui
 

Functions

Rect monopoly::optionsui::customBoardSlotRect (std::size_t slot) noexcept
 
bool monopoly::optionsui::customBoardHasPrevious (const CustomBoardState &state) noexcept
 
bool monopoly::optionsui::customBoardHasNext (const CustomBoardState &state) noexcept
 
std::expected< void, std::string > monopoly::optionsui::openCustomBoardDialog (CustomBoardState &state, const std::filesystem::path &moduleDirectory, display::Screen2D previousView)
 
void monopoly::optionsui::closeCustomBoardDialog (CustomBoardState &state) noexcept
 
CustomBoardInput monopoly::optionsui::processCustomBoardInput (CustomBoardState &state, const uimsg::Message &message) noexcept
 
std::expected< std::uint32_t, std::string > monopoly::optionsui::readCustomBoardSecurityVersion ()
 
std::expected< CustomBoardSelection, std::string > monopoly::optionsui::validateCustomBoardFile (const std::filesystem::path &directory, const std::filesystem::path &fileName, std::uint32_t installedSecurityVersion)
 
std::expected< CustomBoardSelection, std::string > monopoly::optionsui::validateSelectedCustomBoard (const CustomBoardState &state)
 
std::expected< std::optional< std::filesystem::path >, std::string > monopoly::optionsui::restoreSavedCustomBoard (std::string_view savedAssetRoot, const data::ResourceSnapshot &resources, int monetarySystem)
 

Variables

constexpr std::size_t monopoly::optionsui::CustomBoardLimit = 100
 
constexpr std::size_t monopoly::optionsui::CustomBoardPageSize = 5