Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::engine::ModernEnvironment Class Referencefinal

#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)
 

Detailed Description

Definition at line 34 of file ModernEnvironment.hpp.

Member Typedef Documentation

◆ Diagnostic

using monopoly::engine::ModernEnvironment::Diagnostic = std::function<void(std::string_view)>

Definition at line 37 of file ModernEnvironment.hpp.

◆ Loader

Definition at line 38 of file ModernEnvironment.hpp.

Constructor & Destructor Documentation

◆ ModernEnvironment() [1/2]

monopoly::engine::ModernEnvironment::ModernEnvironment ( )
default

◆ ModernEnvironment() [2/2]

monopoly::engine::ModernEnvironment::ModernEnvironment ( std::filesystem::path  modernAssetsRoot,
bool  enabled = false,
Diagnostic  diagnostic = {},
Loader  loader = {} 
)
explicit

Definition at line 97 of file ModernEnvironment.cpp.

Member Function Documentation

◆ decodeWorkers()

unsigned monopoly::engine::ModernEnvironment::decodeWorkers ( ) const
inlinenoexcept

Definition at line 50 of file ModernEnvironment.hpp.

◆ enabled()

bool monopoly::engine::ModernEnvironment::enabled ( ) const
inlinenoexcept

Definition at line 51 of file ModernEnvironment.hpp.

◆ items()

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.

◆ rejectGeometry()

void monopoly::engine::ModernEnvironment::rejectGeometry ( const data::MeshRenderData *  geometry)

Definition at line 194 of file ModernEnvironment.cpp.

◆ setDecodeWorkers()

void monopoly::engine::ModernEnvironment::setDecodeWorkers ( unsigned  workers)
inlinenoexcept

Definition at line 48 of file ModernEnvironment.hpp.

◆ setEnabled()

void monopoly::engine::ModernEnvironment::setEnabled ( bool  enabled)
inlinenoexcept

Definition at line 44 of file ModernEnvironment.hpp.


The documentation for this class was generated from the following files: