Registry of all known sprite OAM layouts. More...
#include <sprite_oam_tables.h>
Static Public Member Functions | |
| static const SpriteOamLayout * | GetLayout (uint8_t sprite_id) |
| Get the OAM layout for a sprite ID. | |
| static std::optional< std::array< uint8_t, 4 > > | GetRequiredSheets (uint8_t sprite_id) |
| Get required graphics sheets for a sprite. | |
| static bool | HasLayout (uint8_t sprite_id) |
| Check if a sprite has a defined layout. | |
| static std::vector< const SpriteOamLayout * > | GetAllLayouts () |
| Get all defined layouts. | |
Registry of all known sprite OAM layouts.
Provides lookup by sprite ID for static rendering.
Definition at line 225 of file sprite_oam_tables.h.
|
static |
Get the OAM layout for a sprite ID.
| sprite_id | The sprite type ID |
Definition at line 42 of file sprite_oam_tables.cc.
Referenced by yaze::editor::SpriteEditor::DrawSpriteCanvas(), and GetRequiredSheets().
|
static |
Get required graphics sheets for a sprite.
| sprite_id | The sprite type ID |
Definition at line 51 of file sprite_oam_tables.cc.
References GetLayout().
|
static |
Check if a sprite has a defined layout.
| sprite_id | The sprite type ID |
Definition at line 60 of file sprite_oam_tables.cc.
|
static |
Get all defined layouts.
Definition at line 65 of file sprite_oam_tables.cc.