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_palette (std::size_t palette_index, Palette< Rgba32, palette::max_size > palette)
 
const Palette< Rgba32, palette::max_size > & palette_at (std::size_t palette_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, palette::max_size >, palette::num_palettes > & palettes () 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 54 of file porymap_tileset_component.hpp.

◆ anims() [1/2]

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

Definition at line 99 of file porymap_tileset_component.hpp.

◆ anims() [2/2]

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

Definition at line 94 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 49 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 74 of file porymap_tileset_component.hpp.

◆ metatiles_bin() [1/3]

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

Definition at line 64 of file porymap_tileset_component.hpp.

◆ metatiles_bin() [2/3]

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

Definition at line 59 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 69 of file porymap_tileset_component.hpp.

◆ palette_at()

const Palette< Rgba32, palette::max_size > & porytiles::PorymapTilesetComponent::palette_at ( std::size_t  palette_index) const

Definition at line 42 of file porymap_tileset_component.cpp.

◆ palettes()

const std::array< Palette< Rgba32, palette::max_size >, palette::num_palettes > & porytiles::PorymapTilesetComponent::palettes ( ) const
inline

Definition at line 89 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_palette()

void porytiles::PorymapTilesetComponent::set_palette ( std::size_t  palette_index,
Palette< Rgba32, palette::max_size palette 
)

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 79 of file porymap_tileset_component.hpp.

◆ tiles_png() [2/2]

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

Definition at line 84 of file porymap_tileset_component.hpp.


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