Porytiles
Loading...
Searching...
No Matches
porytiles::PorymapTilesetComponent Class Reference

#include <porymap_tileset_component.hpp>

Public Member Functions

 PorymapTilesetComponent ()
 
void push_back_tilemap_entry (TilemapEntry entry)
 Add a TilemapEntry to the end of the entry vector.
 
void push_back_attribute (MetatileAttribute attribute)
 Add a MetatileAttribute to the end of the attribute vector.
 
void set_pal (std::size_t pal_index, Palette< Rgba32, pal::max_size > pal)
 
const Palette< Rgba32, pal::max_size > & pal_at (std::size_t pal_index) const
 
bool is_empty () const
 
ChainableResult< LayerModedetect_layer_mode () const
 
void add_anim (Animation< IndexPixel > anim)
 
bool has_anim (const std::string &name) const
 
const Animation< IndexPixel > & anim_for_name (const std::string &name) const
 
const std::vector< TilemapEntry > & metatiles_bin () const
 
std::vector< TilemapEntry > & metatiles_bin ()
 
void metatiles_bin (const std::vector< TilemapEntry > &new_entries)
 
const std::vector< MetatileAttribute > & metatile_attributes_bin () const
 
const Image< IndexPixel > & tiles_png () const
 
void tiles_png (const Image< IndexPixel > &tiles_png)
 
const std::array< Palette< Rgba32, pal::max_size >, pal::num_pals > & pals () const
 
const std::map< std::string, Animation< IndexPixel > > & anims () const
 
std::map< std::string, Animation< IndexPixel > > & anims ()
 

Detailed Description

Definition at line 19 of file porymap_tileset_component.hpp.

Constructor & Destructor Documentation

◆ PorymapTilesetComponent()

porytiles::PorymapTilesetComponent::PorymapTilesetComponent ( )

Definition at line 18 of file porymap_tileset_component.cpp.

Member Function Documentation

◆ add_anim()

void porytiles::PorymapTilesetComponent::add_anim ( Animation< IndexPixel anim)

Definition at line 85 of file porymap_tileset_component.cpp.

◆ anim_for_name()

const Animation< IndexPixel > & porytiles::PorymapTilesetComponent::anim_for_name ( const std::string &  name) const
inline

Definition at line 58 of file porymap_tileset_component.hpp.

◆ anims() [1/2]

std::map< std::string, Animation< IndexPixel > > & porytiles::PorymapTilesetComponent::anims ( )
inline

Definition at line 103 of file porymap_tileset_component.hpp.

◆ anims() [2/2]

const std::map< std::string, Animation< IndexPixel > > & porytiles::PorymapTilesetComponent::anims ( ) const
inline

Definition at line 98 of file porymap_tileset_component.hpp.

◆ detect_layer_mode()

ChainableResult< LayerMode > porytiles::PorymapTilesetComponent::detect_layer_mode ( ) const

Definition at line 55 of file porymap_tileset_component.cpp.

◆ has_anim()

bool porytiles::PorymapTilesetComponent::has_anim ( const std::string &  name) const
inline

Definition at line 53 of file porymap_tileset_component.hpp.

◆ is_empty()

bool porytiles::PorymapTilesetComponent::is_empty ( ) const

Definition at line 50 of file porymap_tileset_component.cpp.

◆ metatile_attributes_bin()

const std::vector< MetatileAttribute > & porytiles::PorymapTilesetComponent::metatile_attributes_bin ( ) const
inline

Definition at line 78 of file porymap_tileset_component.hpp.

◆ metatiles_bin() [1/3]

std::vector< TilemapEntry > & porytiles::PorymapTilesetComponent::metatiles_bin ( )
inline

Definition at line 68 of file porymap_tileset_component.hpp.

◆ metatiles_bin() [2/3]

const std::vector< TilemapEntry > & porytiles::PorymapTilesetComponent::metatiles_bin ( ) const
inline

Definition at line 63 of file porymap_tileset_component.hpp.

◆ metatiles_bin() [3/3]

void porytiles::PorymapTilesetComponent::metatiles_bin ( const std::vector< TilemapEntry > &  new_entries)
inline

Definition at line 73 of file porymap_tileset_component.hpp.

◆ pal_at()

const Palette< Rgba32, pal::max_size > & porytiles::PorymapTilesetComponent::pal_at ( std::size_t  pal_index) const

Definition at line 42 of file porymap_tileset_component.cpp.

◆ pals()

const std::array< Palette< Rgba32, pal::max_size >, pal::num_pals > & porytiles::PorymapTilesetComponent::pals ( ) const
inline

Definition at line 93 of file porymap_tileset_component.hpp.

◆ push_back_attribute()

void porytiles::PorymapTilesetComponent::push_back_attribute ( MetatileAttribute  attribute)

Add a MetatileAttribute to the end of the attribute vector.

Moves the provided MetatileAttribute into the attribute vector.

Parameters
attributeThe MetatileAttribute to move into the vector.

Definition at line 29 of file porymap_tileset_component.cpp.

◆ push_back_tilemap_entry()

void porytiles::PorymapTilesetComponent::push_back_tilemap_entry ( TilemapEntry  entry)

Add a TilemapEntry to the end of the entry vector.

Moves the provided TilemapEntry into the entry vector.

Parameters
entryThe TilemapEntry to move into the vector.

Definition at line 23 of file porymap_tileset_component.cpp.

◆ set_pal()

void porytiles::PorymapTilesetComponent::set_pal ( std::size_t  pal_index,
Palette< Rgba32, pal::max_size pal 
)

Definition at line 34 of file porymap_tileset_component.cpp.

◆ tiles_png() [1/2]

const Image< IndexPixel > & porytiles::PorymapTilesetComponent::tiles_png ( ) const
inline

Definition at line 83 of file porymap_tileset_component.hpp.

◆ tiles_png() [2/2]

void porytiles::PorymapTilesetComponent::tiles_png ( const Image< IndexPixel > &  tiles_png)
inline

Definition at line 88 of file porymap_tileset_component.hpp.


The documentation for this class was generated from the following files: