Unified manifest resource and config accessor. More...
#include <ManifestResources.h>
Static Public Member Functions | |
| template<typename EnumType> | |
| static auto | get (EnumType key) -> std::enable_if_t< !is_asset_enum< Manifest, EnumType >::value, decltype(ConfigManager< Manifest >::get(key))> |
Retrieve a config value by enum key → ConfigManager. | |
| template<typename EnumType> | |
| static auto | get (EnumType key) -> std::enable_if_t< is_asset_enum< Manifest, EnumType >::value, const_ref_t< decltype(AssetsManager< Manifest >::get(key))> > |
Retrieve an asset by enum key → AssetsManager. | |
| template<typename EnumType> | |
| static std::enable_if_t< is_sounds_enum< Manifest, EnumType >::value > | unload (EnumType key) |
| template<typename EnumType> | |
| static std::enable_if_t< is_fonts_enum< Manifest, EnumType >::value > | unload (EnumType key) |
| template<typename EnumType> | |
| static std::enable_if_t< is_images_enum< Manifest, EnumType >::value > | unload (EnumType key) |
Unified manifest resource and config accessor.
ManifestResources<Manifest> provides a single get() that routes to the correct manager based on the enum type:
Images, Fonts, Sounds) → AssetsManager Text, Ints, Floats, Booleans) → ConfigManager Asset overloads always return const T& — so taking the address with & always yields const T* with no type deduction ambiguity:
Definition at line 97 of file ManifestResources.h.
|
inlinestatic |
Retrieve a config value by enum key → ConfigManager.
Return type is inferred from ConfigManager::get() — Text gives const std::string&, Ints gives int, etc.
Definition at line 122 of file ManifestResources.h.
|
inlinestatic |
Retrieve an asset by enum key → AssetsManager.
Return type is explicitly const T& — taking & gives const T* with no ambiguity, suitable for SFML functions that take const sf::Texture* etc.
Definition at line 107 of file ManifestResources.h.
|
inlinestatic |
Definition at line 148 of file ManifestResources.h.
|
inlinestatic |
Definition at line 141 of file ManifestResources.h.
|
inlinestatic |
Definition at line 134 of file ManifestResources.h.