|
Porytiles
|
Domain service interface for importing vanilla (non-Porytiles-managed) tilesets into a PorymapTilesetComponent. More...
#include <primary_tileset_importer.hpp>
Public Member Functions | |
| virtual | ~PrimaryTilesetImporter ()=default |
| virtual ChainableResult< std::unique_ptr< PorymapTilesetComponent > > | import_porymap_component_from_vanilla (const std::string &tileset_name) const =0 |
| Imports vanilla Porymap assets for the given tileset into a PorymapTilesetComponent. | |
Domain service interface for importing vanilla (non-Porytiles-managed) tilesets into a PorymapTilesetComponent.
Definition at line 22 of file primary_tileset_importer.hpp.
|
virtualdefault |
|
pure virtual |
Imports vanilla Porymap assets for the given tileset into a PorymapTilesetComponent.
This is the Template Method hook that infra-layer implementations override to provide backing-store-specific asset loading. The method reads existing Porymap tileset artifacts from a "vanilla" tileset that is not yet managed by Porytiles (the "first-time import" case).
For vanilla tilesets, asset locations are scattered (determined by INCBIN declarations in C headers). This method handles that "discovery chaos" by parsing the relevant C files to find actual file paths.
The returned PorymapTilesetComponent should contain:
| tileset_name | The name of the tileset to import (e.g., "gTileset_General") |
Implemented in porytiles::ProjectPrimaryTilesetImporter.