Combines AssetsManager, ConfigManager, and StateManager for a manifest into one convenience struct.
More...
#include <Context.h>
Public Types | |
| using | AssetMgr = AssetsManager<Manifest> |
AssetsManager typed to this manifest — access textures, fonts, sounds. | |
| using | ConfigMgr = ConfigManager<Manifest> |
ConfigManager typed to this manifest — access string/int/float/bool config. | |
| using | StateMgr = StateManager<Manifest> |
StateManager typed to this manifest — access the manifest's State enum. | |
Combines AssetsManager, ConfigManager, and StateManager for a manifest into one convenience struct.
Context<Manifest> is the highest-level manifest grouping. It also inherits ManifestAliases so that inner enum types (Images, Fonts, Sounds, State, Flags) are accessible without full qualification.
Context Use Context when a class or plugin needs both media assets (textures, fonts, sounds) and configuration values (strings, ints, floats, bools):
| You need | Use |
|---|---|
| One asset type only | TextureManager / FontManager / SoundManager directly |
| Multiple media types | AssetsManager<Manifest> |
| Media + configuration | Context<Manifest> (this struct) |
| using ml::Context< Manifest >::AssetMgr = AssetsManager<Manifest> |
AssetsManager typed to this manifest — access textures, fonts, sounds.
| using ml::Context< Manifest >::ConfigMgr = ConfigManager<Manifest> |
ConfigManager typed to this manifest — access string/int/float/bool config.
| using ml::Context< Manifest >::StateMgr = StateManager<Manifest> |
StateManager typed to this manifest — access the manifest's State enum.