|
Porytiles
|
Use case for creating a new primary Tileset from scratch. More...
#include <create_primary_tileset.hpp>
Public Member Functions | |
| CreatePrimaryTileset (gsl::not_null< const TilesetCreator * > creator, gsl::not_null< const TilesetCompiler * > compiler, gsl::not_null< const TilesetRepo * > tileset_repo, gsl::not_null< const TilesetMetadataProvider * > metadata_provider, gsl::not_null< const PorytilesTilesetManager * > tileset_manager, gsl::not_null< DomainConfig * > domain_config, gsl::not_null< const AppConfig * > app_config, gsl::not_null< const UserDiagnostics * > diag) | |
| Constructs a CreatePrimaryTileset use case with the given dependencies. | |
| ChainableResult< void > | create (const std::string &tileset_name) const |
| Creates a new primary Tileset with the given name. | |
Use case for creating a new primary Tileset from scratch.
This use case creates a brand new Porytiles-managed primary tileset. Unlike import, which converts existing vanilla pokeemerald tilesets, this creates a tileset from nothing with empty assets.
The workflow:
Definition at line 34 of file create_primary_tileset.hpp.
|
inline |
Constructs a CreatePrimaryTileset use case with the given dependencies.
| creator | Service for creating blank primary PorytilesTilesetComponent |
| compiler | Service for compiling PorytilesTilesetComponent to PorymapTilesetComponent |
| tileset_repo | Repository for persisting Tileset aggregates |
| metadata_provider | Provider for checking if tilesets exist |
| tileset_manager | Service for persisting managed state and headers.h entries |
| domain_config | Configuration for domain layer operations |
| app_config | Configuration for app layer operations |
| diag | User diagnostics for warnings and errors |
Definition at line 48 of file create_primary_tileset.hpp.
| ChainableResult< void > porytiles::CreatePrimaryTileset::create | ( | const std::string & | tileset_name | ) | const |
Creates a new primary Tileset with the given name.
Creates a brand-new primary tileset from scratch. The tileset will have:
| tileset_name | The name for the new tileset (e.g., "gTileset_MyNewTileset") |
Definition at line 16 of file create_primary_tileset.cpp.