Porytiles
Loading...
Searching...
No Matches
project_tileset_artifact_paths.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <vector>
5
6namespace porytiles {
7
35 public:
45 std::filesystem::path tiles_path,
46 std::vector<std::filesystem::path> palette_paths,
47 std::filesystem::path metatiles_path,
48 std::filesystem::path metatile_attributes_path)
49 : tiles_path_{std::move(tiles_path)}, palette_paths_{std::move(palette_paths)},
50 metatiles_path_{std::move(metatiles_path)}, metatile_attributes_path_{std::move(metatile_attributes_path)}
51 {
52 }
53
59 [[nodiscard]] const std::filesystem::path &tiles_path() const
60 {
61 return tiles_path_;
62 }
63
69 [[nodiscard]] const std::vector<std::filesystem::path> &palette_paths() const
70 {
71 return palette_paths_;
72 }
73
79 [[nodiscard]] const std::filesystem::path &metatiles_path() const
80 {
81 return metatiles_path_;
82 }
83
89 [[nodiscard]] const std::filesystem::path &metatile_attributes_path() const
90 {
91 return metatile_attributes_path_;
92 }
93
94 private:
95 std::filesystem::path tiles_path_;
96 std::vector<std::filesystem::path> palette_paths_;
97 std::filesystem::path metatiles_path_;
98 std::filesystem::path metatile_attributes_path_;
99};
100
101} // namespace porytiles
Represents resolved filesystem paths for tileset artifacts from INCBIN declarations.
const std::filesystem::path & tiles_path() const
Returns the path to the tiles file.
const std::filesystem::path & metatiles_path() const
Returns the path to the metatiles file.
ProjectTilesetArtifactPaths(std::filesystem::path tiles_path, std::vector< std::filesystem::path > palette_paths, std::filesystem::path metatiles_path, std::filesystem::path metatile_attributes_path)
Constructs TilesetArtifactPaths from resolved INCBIN paths.
const std::vector< std::filesystem::path > & palette_paths() const
Returns all palette file paths.
const std::filesystem::path & metatile_attributes_path() const
Returns the path to the metatile attributes file.