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 porytiles2 {
10
19 public:
20 virtual ~FilePalLoader() = default;
21
22 [[nodiscard]] virtual Result<Palette<Rgba32>> load(const std::filesystem::path &path) const = 0;
23};
24
25} // namespace porytiles2
A service interface that loads a Palette from a given file.
virtual ~FilePalLoader()=default
virtual Result< Palette< Rgba32 > > load(const std::filesystem::path &path) const =0
std::expected< T, E > Result
A result with some type T on success, otherwise an error of type E.
Definition result.hpp:25