Represents a mapping of palette groups. More...
#include <snes_palette.h>
Public Member Functions | |
auto | get_group (const std::string &group_name) |
template<typename Func> | |
absl::Status | for_each (Func &&func) |
void | clear () |
bool | empty () |
Represents a mapping of palette groups.
Originally, this was an actual std::unordered_map but since the palette groups supported never change, it was changed to a struct with a method to get the group by name.
Definition at line 246 of file snes_palette.h.
|
inline |
Definition at line 263 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_main, overworld_mini_map, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
|
inline |
Definition at line 300 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_mini_map, RETURN_IF_ERROR, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
|
inline |
Definition at line 318 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_main, overworld_mini_map, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
|
inline |
Definition at line 336 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_main, overworld_mini_map, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
PaletteGroup yaze::gfx::PaletteGroupMap::overworld_main = {kPaletteGroupAddressesKeys[0]} |
Definition at line 247 of file snes_palette.h.
Referenced by clear(), empty(), get_group(), and yaze::gfx::palette_group_internal::LoadOverworldMainPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::overworld_aux = {kPaletteGroupAddressesKeys[1]} |
Definition at line 248 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadOverworldAuxiliaryPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::overworld_animated = {kPaletteGroupAddressesKeys[2]} |
Definition at line 249 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadOverworldAnimatedPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::hud = {kPaletteGroupAddressesKeys[3]} |
Definition at line 250 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadHUDPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::global_sprites = {kPaletteGroupAddressesKeys[4]} |
Definition at line 251 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadGlobalSpritePalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::armors = {kPaletteGroupAddressesKeys[5]} |
Definition at line 252 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadArmorPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::swords = {kPaletteGroupAddressesKeys[6]} |
Definition at line 253 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadSwordPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::shields = {kPaletteGroupAddressesKeys[7]} |
Definition at line 254 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadShieldPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::sprites_aux1 = {kPaletteGroupAddressesKeys[8]} |
Definition at line 255 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadSpriteAux1Palettes().
PaletteGroup yaze::gfx::PaletteGroupMap::sprites_aux2 = {kPaletteGroupAddressesKeys[9]} |
Definition at line 256 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadSpriteAux2Palettes().
PaletteGroup yaze::gfx::PaletteGroupMap::sprites_aux3 = {kPaletteGroupAddressesKeys[10]} |
Definition at line 257 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadSpriteAux3Palettes().
PaletteGroup yaze::gfx::PaletteGroupMap::dungeon_main = {kPaletteGroupAddressesKeys[11]} |
Definition at line 258 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadDungeonMainPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::grass = {kPaletteGroupAddressesKeys[12]} |
Definition at line 259 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadGrassColors().
PaletteGroup yaze::gfx::PaletteGroupMap::object_3d = {kPaletteGroupAddressesKeys[13]} |
Definition at line 260 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::Load3DObjectPalettes().
PaletteGroup yaze::gfx::PaletteGroupMap::overworld_mini_map = {kPaletteGroupAddressesKeys[14]} |
Definition at line 261 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadOverworldMiniMapPalettes().