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

#include <porymap_tileset_component.hpp>

Public Member Functions

 PorymapTilesetComponent ()=default
 
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 (Palette< Rgba32 > pal, unsigned int pal_index)
 
const Palette< Rgba32 > & pal_at (unsigned int pal_index) const
 
bool is_empty () const
 
ChainableResult< tileset::LayerModedetect_layer_mode () const
 
const std::vector< TilemapEntry > & metatiles_bin () const
 
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::num_pals > & pals () const
 

Detailed Description

Definition at line 32 of file porymap_tileset_component.hpp.

Constructor & Destructor Documentation

◆ PorymapTilesetComponent()

porytiles2::PorymapTilesetComponent::PorymapTilesetComponent ( )
default

Member Function Documentation

◆ detect_layer_mode()

ChainableResult< tileset::LayerMode > porytiles2::PorymapTilesetComponent::detect_layer_mode ( ) const

Definition at line 51 of file porymap_tileset_component.cpp.

◆ is_empty()

bool porytiles2::PorymapTilesetComponent::is_empty ( ) const

Definition at line 46 of file porymap_tileset_component.cpp.

◆ metatile_attributes_bin()

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

Definition at line 69 of file porymap_tileset_component.hpp.

◆ metatiles_bin()

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

Definition at line 64 of file porymap_tileset_component.hpp.

◆ pal_at()

const Palette< Rgba32 > & porytiles2::PorymapTilesetComponent::pal_at ( unsigned int  pal_index) const

Definition at line 38 of file porymap_tileset_component.cpp.

◆ pals()

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

Definition at line 84 of file porymap_tileset_component.hpp.

◆ push_back_attribute()

void porytiles2::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 25 of file porymap_tileset_component.cpp.

◆ push_back_tilemap_entry()

void porytiles2::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 19 of file porymap_tileset_component.cpp.

◆ set_pal()

void porytiles2::PorymapTilesetComponent::set_pal ( Palette< Rgba32 pal,
unsigned int  pal_index 
)

Definition at line 30 of file porymap_tileset_component.cpp.

◆ tiles_png() [1/2]

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

Definition at line 74 of file porymap_tileset_component.hpp.

◆ tiles_png() [2/2]

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

Definition at line 79 of file porymap_tileset_component.hpp.


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