Porytiles
Loading...
Searching...
No Matches
porytiles2::FilePalSaver Class Referenceabstract

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

#include <file_pal_saver.hpp>

Inheritance diagram for porytiles2::FilePalSaver:
[legend]

Public Member Functions

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

Detailed Description

A service interface that saves a Palette to a given file.

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

Definition at line 18 of file file_pal_saver.hpp.

Constructor & Destructor Documentation

◆ ~FilePalSaver()

virtual porytiles2::FilePalSaver::~FilePalSaver ( )
virtualdefault

Member Function Documentation

◆ save()

virtual ChainableResult< void > porytiles2::FilePalSaver::save ( const Palette< Rgba32 > &  pal,
const std::filesystem::path &  path 
) const
pure virtual

Implemented in porytiles2::JascPalSaver.


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