Porytiles
Loading...
Searching...
No Matches
porytiles::PackableTile::PrefilledPaletteId Class Reference

Identifies a tile created from a prefilled palette. More...

#include <packable_tile.hpp>

Public Member Functions

 PrefilledPaletteId (std::size_t index)
 
std::size_t index () const
 
auto operator<=> (const PrefilledPaletteId &) const =default
 
bool operator== (const PrefilledPaletteId &) const =default
 

Static Public Attributes

static constexpr std::size_t max_index = 15
 

Detailed Description

Identifies a tile created from a prefilled palette.

Invariant
index is always in the range [0, 15]

Definition at line 51 of file packable_tile.hpp.

Constructor & Destructor Documentation

◆ PrefilledPaletteId()

porytiles::PackableTile::PrefilledPaletteId::PrefilledPaletteId ( std::size_t  index)
inlineexplicit

Definition at line 55 of file packable_tile.hpp.

Member Function Documentation

◆ index()

std::size_t porytiles::PackableTile::PrefilledPaletteId::index ( ) const
inline

Definition at line 64 of file packable_tile.hpp.

◆ operator<=>()

auto porytiles::PackableTile::PrefilledPaletteId::operator<=> ( const PrefilledPaletteId ) const
default

◆ operator==()

bool porytiles::PackableTile::PrefilledPaletteId::operator== ( const PrefilledPaletteId ) const
default

Member Data Documentation

◆ max_index

constexpr std::size_t porytiles::PackableTile::PrefilledPaletteId::max_index = 15
staticconstexpr

Definition at line 53 of file packable_tile.hpp.


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