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
33 public:
41 std::filesystem::path tiles_path,
42 std::vector<std::filesystem::path> palette_paths,
43 std::filesystem::path metatiles_path,
44 std::filesystem::path metatile_attributes_path)
45 : tiles_path_{std::move(tiles_path)}, palette_paths_{std::move(palette_paths)},
46 metatiles_path_{std::move(metatiles_path)}, metatile_attributes_path_{std::move(metatile_attributes_path)}
47 {
48 }
49
53 [[nodiscard]] const std::filesystem::path &tiles_path() const
54 {
55 return tiles_path_;
56 }
57
61 [[nodiscard]] const std::vector<std::filesystem::path> &palette_paths() const
62 {
63 return palette_paths_;
64 }
65
69 [[nodiscard]] const std::filesystem::path &metatiles_path() const
70 {
71 return metatiles_path_;
72 }
73
77 [[nodiscard]] const std::filesystem::path &metatile_attributes_path() const
78 {
79 return metatile_attributes_path_;
80 }
81
82 private:
83 std::filesystem::path tiles_path_;
84 std::vector<std::filesystem::path> palette_paths_;
85 std::filesystem::path metatiles_path_;
86 std::filesystem::path metatile_attributes_path_;
87};
88
89} // 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.