Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
RuleArchive.hpp File Reference
#include "RuleTypes.hpp"
#include <array>
#include <cstdint>
#include <span>
#include <vector>
Include dependency graph for RuleArchive.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  monopoly
 
namespace  monopoly::rules
 
namespace  monopoly::rules::archive
 

Typedefs

using monopoly::rules::archive::AIStateArray = std::array< std::vector< std::uint8_t >, MaxPlayers >
 

Functions

bool monopoly::rules::archive::encodeSave (const GameState &state, const AIStateArray &aiStates, std::vector< std::uint8_t > &result)
 
bool monopoly::rules::archive::decodeSave (std::span< const std::uint8_t > data, GameState &state, AIStateArray *aiStates)
 
bool monopoly::rules::archive::encodeOptions (const GameOptions &options, std::vector< std::uint8_t > &result)
 
bool monopoly::rules::archive::decodeOptions (std::span< const std::uint8_t > data, GameOptions &result)