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

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

#include <import_primary_tileset.hpp>

Public Member Functions

 ImportPrimaryTileset (std::unique_ptr< TilesetRepo > tileset_repo, std::unique_ptr< PrimaryTilesetCompiler > compiler, std::unique_ptr< DomainConfig > config)
 Constructs an ImportPrimaryTileset use case with the given repositories and services.
 
Result< void > import (const std::string &tileset_name) const
 Imports the primary Tileset with the given tileset name.
 

Detailed Description

Use case for importing a primary Tileset.

Definition at line 16 of file import_primary_tileset.hpp.

Constructor & Destructor Documentation

◆ ImportPrimaryTileset()

porytiles2::ImportPrimaryTileset::ImportPrimaryTileset ( std::unique_ptr< TilesetRepo tileset_repo,
std::unique_ptr< PrimaryTilesetCompiler compiler,
std::unique_ptr< DomainConfig config 
)
inline

Constructs an ImportPrimaryTileset 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
configA pointer to the Config for this use case

Definition at line 25 of file import_primary_tileset.hpp.

Member Function Documentation

◆ import()

Result< void > porytiles2::ImportPrimaryTileset::import ( const std::string &  tileset_name) const

Imports the primary Tileset with the given tileset name.

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

Definition at line 11 of file import_primary_tileset.cpp.


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