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).
28 [](Rom* rom) {
29 return std::make_unique<AssemblyEditor>(rom);
30 });
32 [](Rom* rom) {
33 return std::make_unique<DungeonEditorV2>(rom);
34 });
36 [](Rom* rom) {
37 return std::make_unique<GraphicsEditor>(rom);
38 });
40 [](Rom* rom) {
41 return std::make_unique<MusicEditor>(rom);
42 });
44 [](Rom* rom) {
45 return std::make_unique<OverworldEditor>(rom);
46 });
48 [](Rom* rom) {
49 return std::make_unique<PaletteEditor>(rom);
50 });
52 [](Rom* rom) {
53 return std::make_unique<ScreenEditor>(rom);
54 });
56 [](Rom* rom) {
57 return std::make_unique<SpriteEditor>(rom);
58 });
60 [](Rom* rom) {
61 return std::make_unique<MessageEditor>(rom);
62 });
64 [](Rom* rom) {
65 return std::make_unique<MemoryEditor>(rom);
66 });
68 [](Rom*) { return std::make_unique<SettingsPanel>(); });
69}
70
71} // namespace yaze::editor
72
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)