Porytiles
Loading...
Searching...
No Matches
file_palette_loader.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
8
9namespace porytiles {
10
17 public:
18 virtual ~FilePaletteLoader() = default;
19
21 load(const std::filesystem::path &path) const = 0;
22
24 load_with_wildcards(const std::filesystem::path &path) const = 0;
25};
26
27} // namespace porytiles
A result type that maintains a chainable sequence of errors for debugging and error reporting.
A service interface that loads a fixed-length Palette from a given file.
virtual ChainableResult< Palette< Rgba32, palette::max_size > > load(const std::filesystem::path &path) const =0
virtual ~FilePaletteLoader()=default
virtual ChainableResult< Palette< Rgba32, palette::max_size > > load_with_wildcards(const std::filesystem::path &path) const =0