Porytiles
Loading...
Searching...
No Matches
file_pal_saver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
8
9namespace porytiles2 {
10
19 public:
20 virtual ~FilePalSaver() = default;
21
22 [[nodiscard]] virtual ChainableResult<void>
23 save(const Palette<Rgba32> &pal, const std::filesystem::path &path) const = 0;
24};
25
26} // namespace porytiles2
A result type that maintains a chainable sequence of errors for debugging and error reporting.
A service interface that saves a Palette to a given file.
virtual ~FilePalSaver()=default
virtual ChainableResult< void > save(const Palette< Rgba32 > &pal, const std::filesystem::path &path) const =0
A palette container for colors that support transparency checking.
Definition palette.hpp:34