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 239 of file snes_palette.h.
|
inline |
Definition at line 256 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 293 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.
Referenced by yaze::app::Rom::SaveAllPalettes().
|
inline |
Definition at line 311 of file snes_palette.h.
References armors, yaze::app::gfx::PaletteGroup::clear(), 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.
Referenced by yaze::app::Rom::LoadFromPointer().
|
inline |
Definition at line 329 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, yaze::app::gfx::PaletteGroup::size(), sprites_aux1, sprites_aux2, sprites_aux3, and swords.
Referenced by yaze::app::Rom::LoadFromPointer().
PaletteGroup yaze::app::gfx::PaletteGroupMap::overworld_main |
Definition at line 240 of file snes_palette.h.
Referenced by clear(), empty(), get_group(), and yaze::app::gfx::palette_group_internal::LoadOverworldMainPalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::overworld_aux |
Definition at line 241 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadOverworldAuxiliaryPalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::overworld_animated |
Definition at line 242 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadOverworldAnimatedPalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::hud |
Definition at line 243 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadHUDPalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::global_sprites |
Definition at line 244 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), yaze::app::Rom::LoadAllGraphicsData(), and yaze::app::gfx::palette_group_internal::LoadGlobalSpritePalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::armors |
Definition at line 245 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), yaze::app::gfx::palette_group_internal::LoadArmorPalettes(), and yaze::app::Rom::LoadLinkGraphics().
PaletteGroup yaze::app::gfx::PaletteGroupMap::swords |
Definition at line 246 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadSwordPalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::shields |
Definition at line 247 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadShieldPalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::sprites_aux1 |
Definition at line 248 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadSpriteAux1Palettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::sprites_aux2 |
Definition at line 249 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadSpriteAux2Palettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::sprites_aux3 |
Definition at line 250 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadSpriteAux3Palettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::dungeon_main |
Definition at line 251 of file snes_palette.h.
Referenced by clear(), yaze::app::Rom::dungeon_palette(), empty(), for_each(), get_group(), yaze::app::Rom::LoadAllGraphicsData(), yaze::app::gfx::palette_group_internal::LoadDungeonMainPalettes(), and yaze::app::Rom::mutable_dungeon_palette().
PaletteGroup yaze::app::gfx::PaletteGroupMap::grass |
Definition at line 252 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadGrassColors().
PaletteGroup yaze::app::gfx::PaletteGroupMap::object_3d |
Definition at line 253 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::Load3DObjectPalettes().
PaletteGroup yaze::app::gfx::PaletteGroupMap::overworld_mini_map |
Definition at line 254 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::app::gfx::palette_group_internal::LoadOverworldMiniMapPalettes().