Refactor EditorContext and system managers for improved clarity and consistency

This commit is contained in:
scawful
2024-11-20 09:52:54 -05:00
parent 21314702e8
commit 2deb0050be
3 changed files with 16 additions and 13 deletions

View File

@@ -15,6 +15,9 @@ ImGuiKey MapKeyToImGuiKey(char key);
class CommandManager {
public:
CommandManager() = default;
~CommandManager() = default;
using Command = std::function<void()>;
struct CommandInfo {

View File

@@ -10,8 +10,8 @@ namespace editor {
// System resource manager.
class ResourceManager {
public:
ResourceManager();
~ResourceManager();
ResourceManager() : count_(0) {}
~ResourceManager() = default;
void Load(const char* path);
void Unload(const char* path);