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 311 of file snes_palette.h.
|
inline |
Definition at line 328 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 365 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::Rom::SaveAllPalettes().
|
inline |
Definition at line 383 of file snes_palette.h.
References armors, yaze::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::Rom::Close(), and yaze::Rom::LoadZelda3().

|
inline |
Definition at line 401 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::gfx::PaletteGroup::size(), sprites_aux1, sprites_aux2, sprites_aux3, and swords.

| PaletteGroup yaze::gfx::PaletteGroupMap::overworld_main = {kPaletteGroupAddressesKeys[0]} |
Definition at line 312 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 313 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 314 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 315 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 316 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 317 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 318 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 319 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 320 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 321 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 322 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 323 of file snes_palette.h.
Referenced by clear(), yaze::Rom::dungeon_palette(), empty(), for_each(), get_group(), yaze::gfx::palette_group_internal::LoadDungeonMainPalettes(), and yaze::Rom::mutable_dungeon_palette().
| PaletteGroup yaze::gfx::PaletteGroupMap::grass = {kPaletteGroupAddressesKeys[12]} |
Definition at line 324 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 325 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 326 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), and yaze::gfx::palette_group_internal::LoadOverworldMiniMapPalettes().