|
Porytiles
|
#include <porytiles_tileset_component.hpp>
Public Member Functions | |
| PorytilesTilesetComponent ()=default | |
| void | insert_attribute (std::size_t metatile_id, MetatileAttribute attribute) |
| Insert a MetatileAttribute to the end of the attribute vector. | |
| std::optional< MetatileAttribute > | get_attribute (std::size_t metatile_id) const |
| PriorPinColumnState | prior_pin_column_state (FieldRole role) const |
| Returns the recorded prior pin-column state for a role, or no_csv when none was recorded. | |
| void | prior_pin_column_state (FieldRole role, PriorPinColumnState state) |
| Records the prior pin-column state for a role (set by the artifact reader after parsing attributes.csv). | |
| void | set_palette (std::size_t palette_index, Palette< Rgba32, palette::max_size > palette) |
| const std::optional< Palette< Rgba32, palette::max_size > > & | palette_at (std::size_t palette_index) const |
| bool | is_empty () const |
| ChainableResult< LayerMode > | detect_layer_mode (const Rgba32 &extrinsic) const |
| void | add_anim (Animation< Rgba32 > anim) |
| bool | has_anim (const std::string &name) const |
| const Animation< Rgba32 > & | anim_for_name (const std::string &name) const |
| const Image< Rgba32 > & | bottom () const |
| void | bottom (const Image< Rgba32 > &bottom) |
| const Image< Rgba32 > & | middle () const |
| void | middle (const Image< Rgba32 > &middle) |
| const Image< Rgba32 > & | top () const |
| void | top (const Image< Rgba32 > &top) |
| const std::map< std::size_t, MetatileAttribute > & | metatile_attributes () const |
| const std::array< std::optional< Palette< Rgba32, palette::max_size > >, palette::num_palettes > & | palettes () const |
| const std::map< std::string, Animation< Rgba32 > > & | anims () const |
| std::map< std::string, Animation< Rgba32 > > & | anims () |
| const std::map< std::string, std::vector< AnimOverrideEntry > > & | primary_anim_overrides () const |
| void | primary_anim_overrides (std::map< std::string, std::vector< AnimOverrideEntry > > overrides) |
Definition at line 46 of file porytiles_tileset_component.hpp.
|
default |
Definition at line 115 of file porytiles_tileset_component.cpp.
|
inline |
Definition at line 89 of file porytiles_tileset_component.hpp.
|
inline |
Definition at line 140 of file porytiles_tileset_component.hpp.
|
inline |
Definition at line 135 of file porytiles_tileset_component.hpp.
Definition at line 94 of file porytiles_tileset_component.hpp.
Definition at line 99 of file porytiles_tileset_component.hpp.
| ChainableResult< LayerMode > porytiles::PorytilesTilesetComponent::detect_layer_mode | ( | const Rgba32 & | extrinsic | ) | const |
Definition at line 63 of file porytiles_tileset_component.cpp.
| std::optional< MetatileAttribute > porytiles::PorytilesTilesetComponent::get_attribute | ( | std::size_t | metatile_id | ) | const |
Definition at line 22 of file porytiles_tileset_component.cpp.
|
inline |
Definition at line 84 of file porytiles_tileset_component.hpp.
| void porytiles::PorytilesTilesetComponent::insert_attribute | ( | std::size_t | metatile_id, |
| MetatileAttribute | attribute | ||
| ) |
Insert a MetatileAttribute to the end of the attribute vector.
Moves the provided MetatileAttribute into the attribute vector.
| metatile_id | The id (index) of the metatile to which this attribute belongs |
| attribute | The MetatileAttribute to move into the vector. |
Definition at line 14 of file porytiles_tileset_component.cpp.
| bool porytiles::PorytilesTilesetComponent::is_empty | ( | ) | const |
Definition at line 58 of file porytiles_tileset_component.cpp.
|
inline |
Definition at line 124 of file porytiles_tileset_component.hpp.
Definition at line 104 of file porytiles_tileset_component.hpp.
Definition at line 109 of file porytiles_tileset_component.hpp.
| const std::optional< Palette< Rgba32, palette::max_size > > & porytiles::PorytilesTilesetComponent::palette_at | ( | std::size_t | palette_index | ) | const |
Definition at line 50 of file porytiles_tileset_component.cpp.
|
inline |
Definition at line 130 of file porytiles_tileset_component.hpp.
|
inline |
Definition at line 145 of file porytiles_tileset_component.hpp.
|
inline |
Definition at line 150 of file porytiles_tileset_component.hpp.
| PriorPinColumnState porytiles::PorytilesTilesetComponent::prior_pin_column_state | ( | FieldRole | role | ) | const |
Returns the recorded prior pin-column state for a role, or no_csv when none was recorded.
| role | The role whose prior pin-column state to read |
Definition at line 30 of file porytiles_tileset_component.cpp.
| void porytiles::PorytilesTilesetComponent::prior_pin_column_state | ( | FieldRole | role, |
| PriorPinColumnState | state | ||
| ) |
Records the prior pin-column state for a role (set by the artifact reader after parsing attributes.csv).
| role | The role the state describes |
| state | What the loaded CSV said about the role's active pin column |
Definition at line 36 of file porytiles_tileset_component.cpp.
| void porytiles::PorytilesTilesetComponent::set_palette | ( | std::size_t | palette_index, |
| Palette< Rgba32, palette::max_size > | palette | ||
| ) |
Definition at line 41 of file porytiles_tileset_component.cpp.
Definition at line 114 of file porytiles_tileset_component.hpp.
Definition at line 119 of file porytiles_tileset_component.hpp.