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
35 public:
44 std::filesystem::path project_root,
45 gsl::not_null<const TextFormatter *> format,
46 gsl::not_null<const UserDiagnostics *> diag)
47 : project_root_{std::move(project_root)}, format_{format}, diag_{diag}
48 {
49 }
50
65 import_animations(const std::string &tileset_name) const;
66
67 private:
68 std::filesystem::path project_root_;
69 const TextFormatter *format_;
70 const UserDiagnostics *diag_;
71};
72
73} // 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.