Loading...
Searching...
No Matches
ml::DefaultManifest Class Reference

Placeholder manifest used when no custom manifest is provided. More...

#include <DefaultManifest.h>

Public Types

enum class  Asset { DUMMY }
 Placeholder asset enum required by ResourceManager's template contract. More...

Public Member Functions

 DefaultManifest ()

Detailed Description

Placeholder manifest used when no custom manifest is provided.

DefaultManifest satisfies the manifest interface for template parameters that require a manifest type but where the class has no actual resources, flags, or states to declare. It provides a single Asset::DUMMY enum value so that the ResourceManager template instantiates without an empty enum.

You will rarely reference DefaultManifest directly. It appears as the default template argument in managers like FontManager:

// Uses DefaultManifest — loads the built-in Arial font
static const sf::Font & getDefault()
Return the built-in Arial font.

For classes that need resources or flags, declare a real manifest and pass it to ComponentWith, PluginWith, etc.

See also
Manifest, FontManager

Definition at line 32 of file DefaultManifest.h.

Member Enumeration Documentation

◆ Asset

enum class ml::DefaultManifest::Asset
strong

Placeholder asset enum required by ResourceManager's template contract.

Enumerator
DUMMY 

Definition at line 36 of file DefaultManifest.h.

Constructor & Destructor Documentation

◆ DefaultManifest()

ml::DefaultManifest::DefaultManifest ( )
inline

Definition at line 38 of file DefaultManifest.h.


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