yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
default_editor_factories.cc
Go to the documentation of this file.
2
3#include <memory>
4
17#include "rom/rom.h"
18
19namespace yaze::editor {
20
22 if (!registry) {
23 return;
24 }
25
26 // Core editor set (used by RomSession/EditorSet construction).
27 registry->RegisterFactory(EditorType::kAssembly, [](Rom* rom) {
28 return std::make_unique<AssemblyEditor>(rom);
29 });
30 registry->RegisterFactory(EditorType::kDungeon, [](Rom* rom) {
31 return std::make_unique<DungeonEditorV2>(rom);
32 });
33 registry->RegisterFactory(EditorType::kGraphics, [](Rom* rom) {
34 return std::make_unique<GraphicsEditor>(rom);
35 });
36 registry->RegisterFactory(EditorType::kMusic, [](Rom* rom) {
37 return std::make_unique<MusicEditor>(rom);
38 });
39 registry->RegisterFactory(EditorType::kOverworld, [](Rom* rom) {
40 return std::make_unique<OverworldEditor>(rom);
41 });
42 registry->RegisterFactory(EditorType::kPalette, [](Rom* rom) {
43 return std::make_unique<PaletteEditor>(rom);
44 });
45 registry->RegisterFactory(EditorType::kScreen, [](Rom* rom) {
46 return std::make_unique<ScreenEditor>(rom);
47 });
48 registry->RegisterFactory(EditorType::kSprite, [](Rom* rom) {
49 return std::make_unique<SpriteEditor>(rom);
50 });
51 registry->RegisterFactory(EditorType::kMessage, [](Rom* rom) {
52 return std::make_unique<MessageEditor>(rom);
53 });
54 registry->RegisterFactory(EditorType::kHex, [](Rom* rom) {
55 return std::make_unique<MemoryEditor>(rom);
56 });
58 return std::make_unique<SettingsPanel>();
59 });
60}
61
62} // namespace yaze::editor
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:28
Manages editor types, categories, and lifecycle.
void RegisterFactory(EditorType type, EditorFactory factory)
Editors are the view controllers for the application.
void RegisterDefaultEditorFactories(EditorRegistry *registry)