24 return std::get<HintId>(id_).name;
29 return std::get<PrefilledPaletteId>(id_).index();
34 return std::get<RegularId>(id_).index;
A set of colors represented as a bitset.
Identifies a tile created from a prefilled palette.
std::size_t color_count() const
std::size_t prefilled_index() const
PackableTile(HintId id, ColorSet color_set)
Constructs a PackableTile from a palette hint.
std::size_t regular_index() const
std::variant< HintId, PrefilledPaletteId, RegularId, AnimId, PrimaryTileId > Id
Variant type for tile identification.
const std::string & hint_name() const
std::size_t color_set_count(const ColorSet &set)
Counts the number of colors in a ColorSet.
Identifies a tile created from an animation.
Identifies a tile created from a palette hint.
Identifies a tile reconstructed from a compiled primary tileset.
Identifies a regular input tile.