Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
OptionsSaveRuntime.cpp File Reference
#include "OptionsSaveRuntime.hpp"
#include "FontRuntime.hpp"
#include "LanguageResources.hpp"
#include "ResourceRuntime.hpp"
#include <SDL3/SDL.h>
#include <algorithm>
#include <bit>
#include <fstream>
#include <limits>
#include <system_error>
Include dependency graph for OptionsSaveRuntime.cpp:

Go to the source code of this file.

Namespaces

namespace  monopoly
 
namespace  monopoly::optionsui
 

Functions

std::filesystem::path monopoly::optionsui::saveGameDirectory ()
 
std::filesystem::path monopoly::optionsui::gameBlobPath (std::size_t slot)
 
std::filesystem::path monopoly::optionsui::gameMetadataPath (std::size_t slot)
 
Rect monopoly::optionsui::saveSlotRect (std::size_t slot) noexcept
 
Rect monopoly::optionsui::dialogOkayRect (int width, int height) noexcept
 
Rect monopoly::optionsui::dialogCancelRect (int width, int height) noexcept
 
std::expected< void, std::string > monopoly::optionsui::refreshSaveSlots (SaveRuntimeState &state, FileDialogMode mode)
 
void monopoly::optionsui::closeSaveDialog (SaveRuntimeState &state) noexcept
 
SaveDialogInput monopoly::optionsui::processSaveDialogInput (SaveRuntimeState &state, const uimsg::Message &message, fonts::Runtime *fontRuntime, std::shared_ptr< const data::ResourceSnapshot > resources)
 
std::expected< std::vector< std::uint8_t >, std::string > monopoly::optionsui::readSelectedGameBlob (const SaveRuntimeState &state)
 
std::expected< void, std::string > monopoly::optionsui::beginPendingSave (SaveRuntimeState &state, const rules::GameState &ruleState, int city, int system, std::string customBoardName, rules::PlayerNumber requester)
 
void monopoly::optionsui::clearPendingSave (SaveRuntimeState &state) noexcept
 
std::expected< void, std::string > monopoly::optionsui::persistPendingSave (SaveRuntimeState &state, std::span< const std::uint8_t > gameBlob)
 
std::expected< void, std::string > monopoly::optionsui::applySelectedMetadata (const SaveRuntimeState &state, rules::GameState &ruleState, int &city, int &system)