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

Minimal registry for dungeon objects (vanilla or custom). More...

#include <dungeon_object_registry.h>

Public Member Functions

void RegisterObject (const DungeonObjectInfo &info)
 
void RegisterVanillaRange (int16_t start_id, int16_t end_id)
 
void RegisterCustomObject (int16_t id, const std::string &name)
 
const DungeonObjectInfoGet (int16_t id) const
 

Private Attributes

std::unordered_map< int16_t, DungeonObjectInforegistry_
 

Detailed Description

Minimal registry for dungeon objects (vanilla or custom).

This powers previews and can be extended to load custom object definitions from disassembly artifacts (e.g., assets/asm/usdasm outputs).

Definition at line 23 of file dungeon_object_registry.h.

Member Function Documentation

◆ RegisterObject()

void yaze::zelda3::DungeonObjectRegistry::RegisterObject ( const DungeonObjectInfo & info)

Definition at line 8 of file dungeon_object_registry.cc.

References yaze::zelda3::DungeonObjectInfo::id, and registry_.

◆ RegisterVanillaRange()

void yaze::zelda3::DungeonObjectRegistry::RegisterVanillaRange ( int16_t start_id,
int16_t end_id )

◆ RegisterCustomObject()

void yaze::zelda3::DungeonObjectRegistry::RegisterCustomObject ( int16_t id,
const std::string & name )

◆ Get()

const DungeonObjectInfo * yaze::zelda3::DungeonObjectRegistry::Get ( int16_t id) const

Definition at line 28 of file dungeon_object_registry.cc.

References registry_.

Member Data Documentation

◆ registry_

std::unordered_map<int16_t, DungeonObjectInfo> yaze::zelda3::DungeonObjectRegistry::registry_
private

The documentation for this class was generated from the following files: