Represents a decoded custom object (from binary format) More...
#include <custom_object.h>
Classes | |
| struct | TileMapEntry |
Public Member Functions | |
| bool | IsEmpty () const |
Public Attributes | |
| std::vector< TileMapEntry > | tiles |
Represents a decoded custom object (from binary format)
Binary Format (matches Oracle-of-Secrets object_handler.asm): Header (2 bytes, little-endian): Low 5 bits: Tile Count (number of tiles in this segment) High Byte: Jump Offset (added to row start position for next segment) Data (Tile Count * 2 bytes): Word: vhopppcc cccccccc (SNES tilemap entry: flip, priority, palette, tile ID) Repeats until Header is 0x0000.
Buffer Layout: Stride = 128 bytes (64 tiles per row, 2 bytes per tile) Jump offset of 0x80 (128) advances by 1 row
Definition at line 32 of file custom_object.h.
|
inline |
Definition at line 41 of file custom_object.h.
References tiles.
| std::vector<TileMapEntry> yaze::zelda3::CustomObject::tiles |
Definition at line 39 of file custom_object.h.
Referenced by IsEmpty(), and yaze::zelda3::CustomObjectManager::ParseBinaryData().