From 9dd770c0f5d7a03f65fe00410ce476267d0fff2e Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 13 Jul 2024 17:17:56 -0400 Subject: [PATCH] add EditorType enum --- src/app/editor/utils/editor.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/app/editor/utils/editor.h b/src/app/editor/utils/editor.h index 805bc168..97f15c41 100644 --- a/src/app/editor/utils/editor.h +++ b/src/app/editor/utils/editor.h @@ -12,6 +12,17 @@ namespace app { */ namespace editor { +enum class EditorType { + kAssembly, + kDungeon, + kGraphics, + kMusic, + kOverworld, + kPalette, + kScreen, + kSprite, +}; + /** * @class Editor * @brief Interface for editor classes. @@ -31,6 +42,11 @@ class Editor { virtual absl::Status Redo() = 0; virtual absl::Status Update() = 0; + + EditorType type() const { return type_; } + + protected: + EditorType type_; }; } // namespace editor