Porytiles
Loading...
Searching...
No Matches
layer_mode_converter.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "gsl/pointers"
6
14
15namespace porytiles2 {
16
18 public:
20 gsl::not_null<TextFormatter *> format,
21 gsl::not_null<UserDiagnostics *> diag,
22 gsl::not_null<TilePrinter *> tile_printer)
23 : format_{format}, diag_{diag}, tile_printer_{tile_printer}
24 {
25 }
26
44
56
57 private:
58 TextFormatter *format_;
59 UserDiagnostics *diag_;
60 TilePrinter *tile_printer_;
61};
62
63} // namespace porytiles2
A result type that maintains a chainable sequence of errors for debugging and error reporting.
LayerModeConverter(gsl::not_null< TextFormatter * > format, gsl::not_null< UserDiagnostics * > diag, gsl::not_null< TilePrinter * > tile_printer)
ChainableResult< std::vector< TilemapEntry > > triple_layerize(const PorymapTilesetComponent &component)
Converts a tileset component to triple-layer format.
ChainableResult< std::vector< TilemapEntry > > dual_layerize(const PorymapTilesetComponent &component)
TODO.
Abstract base class for applying text styling with context-aware formatting.
A collection of printer functions for various tile types.
Abstract interface for structured error reporting and diagnostic output.