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

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

#include <compile_primary_tileset.hpp>

Public Member Functions

 CompilePrimaryTileset (gsl::not_null< TilesetRepo * > tileset_repo, gsl::not_null< PrimaryTilesetCompiler * > compiler)
 Constructs a CompilePrimaryTileset use case with the given repositories and services.
 
ChainableResult< void > compile (const std::string &tileset_name) const
 Compiles the primary Tileset with the given tileset name.
 

Detailed Description

Use case for compiling a primary Tileset.

Definition at line 16 of file compile_primary_tileset.hpp.

Constructor & Destructor Documentation

◆ CompilePrimaryTileset()

porytiles2::CompilePrimaryTileset::CompilePrimaryTileset ( gsl::not_null< TilesetRepo * >  tileset_repo,
gsl::not_null< PrimaryTilesetCompiler * >  compiler 
)
inline

Constructs a CompilePrimaryTileset 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.

Definition at line 24 of file compile_primary_tileset.hpp.

Member Function Documentation

◆ compile()

ChainableResult< void > porytiles2::CompilePrimaryTileset::compile ( const std::string &  tileset_name) const

Compiles the primary Tileset with the given tileset name.

Given a primary tileset by name, compile the PorytilesTileset assets into PorymapTileset assets. Uses the use case's configured repos to load and save the tileset assets. Uses the given TilesetCompilationService to perform the compilation operation.

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

Definition at line 11 of file compile_primary_tileset.cpp.


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