backend-infra-engineer: Pre-0.2.2 2024 Q4 snapshot
This commit is contained in:
29
src/app/editor/system/extension_manager.h
Normal file
29
src/app/editor/system/extension_manager.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef YAZE_APP_EDITOR_SYSTEM_EXTENSION_MANAGER_H
|
||||
#define YAZE_APP_EDITOR_SYSTEM_EXTENSION_MANAGER_H
|
||||
|
||||
#include <system/extension.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace editor {
|
||||
|
||||
class ExtensionManager {
|
||||
public:
|
||||
void LoadExtension(const std::string& filename, yaze_editor_context* context);
|
||||
void RegisterExtension(yaze_extension* extension);
|
||||
void InitializeExtensions(yaze_editor_context* context);
|
||||
void ShutdownExtensions();
|
||||
void ExecuteExtensionUI(yaze_editor_context* context);
|
||||
|
||||
private:
|
||||
std::vector<yaze_extension*> extensions_;
|
||||
};
|
||||
|
||||
} // namespace editor
|
||||
} // namespace app
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_EDITOR_SYSTEM_EXTENSION_MANAGER_H
|
||||
Reference in New Issue
Block a user