Porytiles
Loading...
Searching...
No Matches
porymap_artifact_parsers.cpp File Reference
#include "porytiles/infra/algorithms/porymap_artifact_parsers.hpp"
#include <cstdint>
#include <format>
#include <fstream>
#include <iterator>
Include dependency graph for porymap_artifact_parsers.cpp:

Go to the source code of this file.

Namespaces

namespace  porytiles
 

Functions

ChainableResult< std::vector< TilemapEntry > > porytiles::parse_metatiles_bin (const std::filesystem::path &path)
 Parses a metatiles.bin file into TilemapEntry objects.
 
ChainableResult< std::vector< MetatileAttribute > > porytiles::parse_metatile_attributes (const std::filesystem::path &path, const Schema &schema)
 Parses a metatile_attributes.bin file according to a metatile attribute schema.
 
ChainableResult< void > porytiles::save_metatile_attributes_bin (const std::vector< MetatileAttribute > &attributes, const std::filesystem::path &path, const Schema &schema)
 Writes metatile attributes to a metatile_attributes.bin file according to a schema.
 
ChainableResult< std::unique_ptr< Image< IndexPixel > > > porytiles::load_indexed_png (const std::filesystem::path &path, const PngIndexedImageLoader &loader)
 Loads an indexed PNG file (e.g., tiles.png).
 
ChainableResult< Palette< Rgba32, palette::max_size > > porytiles::load_porymap_palette (const std::filesystem::path &path, const FilePaletteLoader &loader)
 Loads a Porymap palette file (e.g., 00.pal).