Porytiles
Loading...
Searching...
No Matches
porytiles2::CreatePrimaryTileset Class Reference

Use case for creating a primary Tileset. More...

#include <create_primary_tileset.hpp>

Public Member Functions

 CreatePrimaryTileset (std::unique_ptr< TilesetRepo > tileset_repo, std::unique_ptr< PrimaryTilesetCompiler > compiler, std::unique_ptr< AssetGenerator > asset_generator)
 Constructs a CreatePrimaryTileset use case with the given repositories and services.
 
Result< void > create (const std::string &tileset_name) const
 Creates the primary Tileset with the given tileset name.
 

Detailed Description

Use case for creating a primary Tileset.

Definition at line 16 of file create_primary_tileset.hpp.

Constructor & Destructor Documentation

◆ CreatePrimaryTileset()

porytiles2::CreatePrimaryTileset::CreatePrimaryTileset ( std::unique_ptr< TilesetRepo tileset_repo,
std::unique_ptr< PrimaryTilesetCompiler compiler,
std::unique_ptr< AssetGenerator asset_generator 
)
inline

Constructs a CreatePrimaryTileset use case with the given repositories and services.

Parameters
tileset_repoA pointer to the TilesetRepo for this use case.
compilerA pointer to the PrimaryTilesetCompiler for this use case.
asset_generatorA pointer to the AssetGenerator for this use case.

Definition at line 25 of file create_primary_tileset.hpp.

Member Function Documentation

◆ create()

Result< void > porytiles2::CreatePrimaryTileset::create ( const std::string &  tileset_name) const

Creates the primary Tileset with the given tileset name.

Parameters
tileset_nameThe name of the primary Tileset to create.
Returns
An empty Result on success, otherwise an error description.

Definition at line 13 of file create_primary_tileset.cpp.


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