Porytiles
Loading...
Searching...
No Matches
file_pal_loader.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
8
9namespace porytiles {
10
19 public:
20 virtual ~FilePalLoader() = default;
21
23 load(const std::filesystem::path &path) const = 0;
24
26 load_with_wildcards(const std::filesystem::path &path) const = 0;
27};
28
29} // 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, pal::max_size > > load(const std::filesystem::path &path) const =0
virtual ~FilePalLoader()=default
virtual ChainableResult< Palette< Rgba32, pal::max_size > > load_with_wildcards(const std::filesystem::path &path) const =0