Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::ConfigManager Class Referenceexport

Public Member Functions

 ConfigManager (std::string const &root_path)
 ~ConfigManager ()=default
void load ()
bool normalDebug ()
std::vector< std::string > listLevels ()
std::vector< std::string > listSkybox ()
bool reload ()
bool reloadShaders ()
void setNormalDebug ()
void setReload (bool const reload)
void setReloadShaders (bool const reload)
void switchCamera ()
std::uint8_t getCameraIndex () const
json const & loadLevelData (std::string const &levelName)
json const & appConfig () const
json const & lvlConfig () const
json const & shaderConfig () const
json const & soundConfig () const
json const & texturesConfig () const
template<typename T>
void updateConfig (std::string const &config_name, T const &value)
std::string const & rootPath () const

Constructor & Destructor Documentation

◆ ConfigManager()

Vyroda::ConfigManager::ConfigManager ( std::string const & root_path)
Here is the call graph for this function:

◆ ~ConfigManager()

Vyroda::ConfigManager::~ConfigManager ( )
default
Here is the call graph for this function:

Member Function Documentation

◆ appConfig()

json const & Vyroda::ConfigManager::appConfig ( ) const
inline
Here is the caller graph for this function:

◆ getCameraIndex()

std::uint8_t Vyroda::ConfigManager::getCameraIndex ( ) const
inline

◆ listLevels()

std::vector< std::string > Vyroda::ConfigManager::listLevels ( )

◆ listSkybox()

std::vector< std::string > Vyroda::ConfigManager::listSkybox ( )

◆ load()

void Vyroda::ConfigManager::load ( )
Here is the caller graph for this function:

◆ loadLevelData()

json const & Vyroda::ConfigManager::loadLevelData ( std::string const & levelName)
Here is the call graph for this function:

◆ lvlConfig()

json const & Vyroda::ConfigManager::lvlConfig ( ) const
inline

◆ normalDebug()

bool Vyroda::ConfigManager::normalDebug ( )

◆ reload()

bool Vyroda::ConfigManager::reload ( )
Here is the caller graph for this function:

◆ reloadShaders()

bool Vyroda::ConfigManager::reloadShaders ( )

◆ rootPath()

std::string const & Vyroda::ConfigManager::rootPath ( ) const
inline
Here is the caller graph for this function:

◆ setNormalDebug()

void Vyroda::ConfigManager::setNormalDebug ( )
Here is the caller graph for this function:

◆ setReload()

void Vyroda::ConfigManager::setReload ( bool const reload)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setReloadShaders()

void Vyroda::ConfigManager::setReloadShaders ( bool const reload)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ shaderConfig()

json const & Vyroda::ConfigManager::shaderConfig ( ) const
inline

◆ soundConfig()

json const & Vyroda::ConfigManager::soundConfig ( ) const
inline

◆ switchCamera()

void Vyroda::ConfigManager::switchCamera ( )
Here is the caller graph for this function:

◆ texturesConfig()

json const & Vyroda::ConfigManager::texturesConfig ( ) const
inline

◆ updateConfig()

template<typename T>
void Vyroda::ConfigManager::updateConfig ( std::string const & config_name,
T const & value )
inline
Here is the caller graph for this function:

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