Porytiles
Loading...
Searching...
No Matches
porymap_artifact_parsers.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <memory>
5#include <vector>
6
16
17namespace porytiles {
18
34[[nodiscard]] ChainableResult<std::vector<TilemapEntry>> parse_metatiles_bin(const std::filesystem::path &path);
35
49[[nodiscard]] ChainableResult<std::vector<MetatileAttribute>>
50parse_emerald_metatile_attributes(const std::filesystem::path &path);
51
71[[nodiscard]] ChainableResult<std::vector<MetatileAttribute>>
72parse_firered_metatile_attributes(const std::filesystem::path &path);
73
85[[nodiscard]] ChainableResult<std::unique_ptr<Image<IndexPixel>>>
86load_indexed_png(const std::filesystem::path &path, const PngIndexedImageLoader &loader);
87
99[[nodiscard]] ChainableResult<Palette<Rgba32, pal::max_size>>
100load_porymap_palette(const std::filesystem::path &path, const FilePalLoader &loader);
101
102} // namespace porytiles
ChainableResult< std::vector< MetatileAttribute > > parse_firered_metatile_attributes(const std::filesystem::path &path)
Parses a metatile_attributes.bin file for FireRed format.
ChainableResult< Palette< Rgba32, pal::max_size > > load_porymap_palette(const std::filesystem::path &path, const FilePalLoader &loader)
Loads a Porymap palette file (e.g., 00.pal).
ChainableResult< std::vector< MetatileAttribute > > parse_emerald_metatile_attributes(const std::filesystem::path &path)
Parses a metatile_attributes.bin file for Emerald format.
ChainableResult< std::vector< TilemapEntry > > parse_metatiles_bin(const std::filesystem::path &path)
Parses a metatiles.bin file into TilemapEntry objects.
ChainableResult< std::unique_ptr< Image< IndexPixel > > > load_indexed_png(const std::filesystem::path &path, const PngIndexedImageLoader &loader)
Loads an indexed PNG file (e.g., tiles.png).