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
18#include "rom/rom.h"
19
20namespace yaze::editor {
21
23 if (!registry) {
24 return;
25 }
26
27 // Core editor set (used by RomSession/EditorSet construction).
28 registry->RegisterFactory(EditorType::kAssembly, [](Rom* rom) {
29 return std::make_unique<AssemblyEditor>(rom);
30 });
31 registry->RegisterFactory(EditorType::kDungeon, [](Rom* rom) {
32 return std::make_unique<DungeonEditorV2>(rom);
33 });
34 registry->RegisterFactory(EditorType::kGraphics, [](Rom* rom) {
35 return std::make_unique<GraphicsEditor>(rom);
36 });
37 registry->RegisterFactory(EditorType::kMusic, [](Rom* rom) {
38 return std::make_unique<MusicEditor>(rom);
39 });
40 registry->RegisterFactory(EditorType::kOverworld, [](Rom* rom) {
41 return std::make_unique<OverworldEditor>(rom);
42 });
43 registry->RegisterFactory(EditorType::kPalette, [](Rom* rom) {
44 return std::make_unique<PaletteEditor>(rom);
45 });
46 registry->RegisterFactory(EditorType::kScreen, [](Rom* rom) {
47 return std::make_unique<ScreenEditor>(rom);
48 });
49 registry->RegisterFactory(EditorType::kSprite, [](Rom* rom) {
50 return std::make_unique<SpriteEditor>(rom);
51 });
52 registry->RegisterFactory(EditorType::kMessage, [](Rom* rom) {
53 return std::make_unique<MessageEditor>(rom);
54 });
55 registry->RegisterFactory(EditorType::kHex, [](Rom* rom) {
56 return std::make_unique<MemoryEditor>(rom);
57 });
59 return std::make_unique<SettingsPanel>();
60 });
62 return std::make_unique<PlanningEditor>();
63 });
64}
65
66} // 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:49
Manages editor types, categories, and lifecycle.
void RegisterFactory(EditorType type, EditorFactory factory)
Editors are the view controllers for the application.
void RegisterDefaultEditorFactories(EditorRegistry *registry)