Porytiles
Loading...
Searching...
No Matches
porytiles::FilePaletteSaver Class Referenceabstract

A service interface that saves a fixed-length Palette to a given file. More...

#include <file_palette_saver.hpp>

Inheritance diagram for porytiles::FilePaletteSaver:
[legend]

Public Member Functions

virtual ~FilePaletteSaver ()=default
 
virtual ChainableResult< void > save (const Palette< Rgba32, palette::max_size > &palette, const std::filesystem::path &path) const =0
 

Detailed Description

A service interface that saves a fixed-length Palette to a given file.

The FilePaletteSaver interface is file-format-agnostic. Different implementations can save to various palette file formats (e.g., JASC, .gbapal, etc.).

Definition at line 16 of file file_palette_saver.hpp.

Constructor & Destructor Documentation

◆ ~FilePaletteSaver()

virtual porytiles::FilePaletteSaver::~FilePaletteSaver ( )
virtualdefault

Member Function Documentation

◆ save()

virtual ChainableResult< void > porytiles::FilePaletteSaver::save ( const Palette< Rgba32, palette::max_size > &  palette,
const std::filesystem::path &  path 
) const
pure virtual

Implemented in porytiles::JascPaletteSaver.


The documentation for this class was generated from the following file: