Struct Manager
Defined in File tileset-mgr.h
Inheritance Relationships
Base Types
public CE::Assets::Cache::Store< CE::Assets::Tilesets::Asset, std::string >(Template Struct Store)public CE::State::Singleton< Manager >(Template Class Singleton)
Struct Documentation
-
struct Manager : public CE::Assets::Cache::Store<CE::Assets::Tilesets::Asset, std::string>, public CE::State::Singleton<Manager>
Declaration:
finalRetained namespace:name cache.
Load on the provider/loading owner after images; existing IDs stay unchanged and a batch failure can leave earlier entries. Inherited get_asset() returns a strong handle or null under the cache lock.
Public Functions
-
Manager() = default
Create an empty tilesets cache sharing the active provider/loading-owner domain.
-
~Manager() override = default
Drop cache ownership; retained tilesets values/frames keep their own resources.
-
void load(const std::vector<Definition> &definitions, CE::Rendering::Resources::Provider &provider)
Build and publish absent qualified tilesets IDs after their textures and explicit materials are loaded.
See also
- Parameters:
definitions – Stable CPU definitions with referenced grid/animation metadata.
provider – Active loading-owner backend/current context for geometry/default-material upload. Existing IDs retain their original handles without rebuilding. Explicit shader selections are retained; absent selections use the backend TexturedStrip default. Invalid definitions, missing image/materials, backend or allocation failures may leave earlier entries published. Reads retain immutable resources across cache clears.
-
Manager() = default