69 : type_{
type}, name_{std::move(
name)}, index_{std::nullopt}
115 [[nodiscard]] std::optional<std::string>
name()
const
125 [[nodiscard]] std::optional<unsigned int>
index()
const
137 std::optional<std::string> name_;
138 std::optional<unsigned int> index_;
Represents a Pokémon Generation III decomp tileset artifact with type and optional metadata.
TilesetArtifact(const Type type, std::string name)
Constructs a tileset artifact with a type and name.
TilesetArtifact(const Type type)
Constructs a tileset artifact with only a type.
TilesetArtifact(const Type type, std::string name, int index)
Constructs a tileset artifact with a type, name, and index.
Type type() const
Gets the artifact type.
TilesetArtifact(const Type type, unsigned int index)
Constructs a tileset artifact with a type and index.
std::optional< std::string > name() const
Gets the artifact name if present.
Type
Enumeration of all supported tileset artifact types.
@ porytiles_anim_frame
Animation frame PNG for Porytiles-format animation.
@ attributes_csv
CSV file containing metatile attribute overrides.
@ middle_png
Middle layer PNG input image.
@ metatile_attributes_bin
Metatile attributes output for Porymap.
@ bottom_png
Bottom layer PNG input image.
@ top_png
Top layer PNG input image.
@ pal_n
JASC palette data file.
@ metatiles_bin
Metatile data output for Porymap.
@ pal_override_n
JASC palette override file.
@ tiles_png
Combined tile sheet PNG output for Porymap.
@ local_config
Tileset configuration YAML file.
@ porymap_anim_frame
Animation frame PNG for Porymap-format animation.
std::optional< unsigned int > index() const
Gets the artifact index if present.