yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::zelda3::CustomObject Struct Reference

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< TileMapEntrytiles
 

Detailed Description

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.

Member Function Documentation

◆ IsEmpty()

bool yaze::zelda3::CustomObject::IsEmpty ( ) const
inline

Definition at line 41 of file custom_object.h.

References tiles.

Member Data Documentation

◆ 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().


The documentation for this struct was generated from the following file: