|
Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
|
#include <ModernEnvironment.hpp>
Public Types | |
| using | Diagnostic = std::function< void(std::string_view)> |
| using | Loader = std::function< std::expected< std::shared_ptr< const data::MeshRenderData >, data::MeshRuntimeError >(const std::filesystem::path &, data::ModernGltfLoadOptions)> |
Public Member Functions | |
| ModernEnvironment ()=default | |
| ModernEnvironment (std::filesystem::path modernAssetsRoot, bool enabled=false, Diagnostic diagnostic={}, Loader loader={}) | |
| void | setEnabled (bool enabled) noexcept |
| void | setDecodeWorkers (unsigned workers) noexcept |
| unsigned | decodeWorkers () const noexcept |
| bool | enabled () const noexcept |
| void | rejectGeometry (const data::MeshRenderData *geometry) |
| std::vector< sequence::SequenceMeshRenderItem > | items (const sequence::Matrix3D &boardMatrix, std::uint32_t tick, bool includePresentation=false, bool includeLandmarks=true, bool includeCity=false) |
Definition at line 34 of file ModernEnvironment.hpp.
| using monopoly::engine::ModernEnvironment::Diagnostic = std::function<void(std::string_view)> |
Definition at line 37 of file ModernEnvironment.hpp.
| using monopoly::engine::ModernEnvironment::Loader = std::function<std::expected<std::shared_ptr<const data::MeshRenderData>, data::MeshRuntimeError>(const std::filesystem::path&, data::ModernGltfLoadOptions)> |
Definition at line 38 of file ModernEnvironment.hpp.
|
default |
|
explicit |
Definition at line 97 of file ModernEnvironment.cpp.
|
inlinenoexcept |
Definition at line 50 of file ModernEnvironment.hpp.
|
inlinenoexcept |
Definition at line 51 of file ModernEnvironment.hpp.
| std::vector< sequence::SequenceMeshRenderItem > monopoly::engine::ModernEnvironment::items | ( | const sequence::Matrix3D & | boardMatrix, |
| std::uint32_t | tick, | ||
| bool | includePresentation = false, |
||
| bool | includeLandmarks = true, |
||
| bool | includeCity = false |
||
| ) |
Definition at line 208 of file ModernEnvironment.cpp.
| void monopoly::engine::ModernEnvironment::rejectGeometry | ( | const data::MeshRenderData * | geometry | ) |
Definition at line 194 of file ModernEnvironment.cpp.
Definition at line 48 of file ModernEnvironment.hpp.
Definition at line 44 of file ModernEnvironment.hpp.