Porytiles
Loading...
Searching...
No Matches
jasc_pal_loader.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace porytiles2 {
6
10class JascPalLoader final : public FilePalLoader {
11 public:
12 JascPalLoader() = default;
13
14 [[nodiscard]] Result<Palette<Rgba32>> load(const std::filesystem::path &path) const override;
15};
16
17} // namespace porytiles2
A service interface that loads a Palette from a given file.
An implementation of FilePalLoader that loads palettes from JASC-PAL (Paintshop Pro) pal files.
Result< Palette< Rgba32 > > load(const std::filesystem::path &path) const override
std::expected< T, E > Result
A result with some type T on success, otherwise an error of type E.
Definition result.hpp:25