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 DungeonObjectInfo * | Get (int16_t id) const |
Private Attributes | |
| std::unordered_map< int16_t, DungeonObjectInfo > | registry_ |
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.
| 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_.
| void yaze::zelda3::DungeonObjectRegistry::RegisterVanillaRange | ( | int16_t | start_id, |
| int16_t | end_id ) |
Definition at line 12 of file dungeon_object_registry.cc.
References yaze::zelda3::DungeonObjectInfo::id, and registry_.
Referenced by yaze::editor::DungeonObjectSelector::EnsureRegistryInitialized().
| void yaze::zelda3::DungeonObjectRegistry::RegisterCustomObject | ( | int16_t | id, |
| const std::string & | name ) |
Definition at line 23 of file dungeon_object_registry.cc.
References yaze::zelda3::DungeonObjectInfo::id, yaze::zelda3::name, and registry_.
| const DungeonObjectInfo * yaze::zelda3::DungeonObjectRegistry::Get | ( | int16_t | id | ) | const |
Definition at line 28 of file dungeon_object_registry.cc.
References registry_.
|
private |
Definition at line 32 of file dungeon_object_registry.h.
Referenced by Get(), RegisterCustomObject(), RegisterObject(), and RegisterVanillaRange().