Porytiles
Loading...
Searching...
No Matches
project_vanilla_anim_importer.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <map>
5#include <string>
6
7#include "gsl/pointers"
8
14
15namespace porytiles {
16
33 public:
40 std::filesystem::path project_root,
41 gsl::not_null<const TextFormatter *> format,
42 gsl::not_null<const UserDiagnostics *> diag)
43 : project_root_{std::move(project_root)}, format_{format}, diag_{diag}
44 {
45 }
46
59 import_animations(const std::string &tileset_name) const;
60
61 private:
62 std::filesystem::path project_root_;
63 const TextFormatter *format_;
64 const UserDiagnostics *diag_;
65};
66
67} // namespace porytiles
A result type that maintains a chainable sequence of errors for debugging and error reporting.
Imports vanilla animation metadata and frame data as IndexPixel tiles.
ProjectVanillaAnimImporter(std::filesystem::path project_root, gsl::not_null< const TextFormatter * > format, gsl::not_null< const UserDiagnostics * > diag)
Constructs a ProjectVanillaAnimImporter.
ChainableResult< std::map< std::string, Animation< IndexPixel > > > import_animations(const std::string &tileset_name) const
Import animations from a vanilla tileset.
Abstract base class for applying text styling with context-aware formatting.
Abstract class for structured error reporting and diagnostic output.