mirror of
https://github.com/edubart/otclient.git
synced 2025-11-04 20:46:24 +01:00
merge total remake
This commit is contained in:
21
src/framework/core/modulemanager.h
Normal file
21
src/framework/core/modulemanager.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef MODULEMANAGER_H
|
||||
#define MODULEMANAGER_H
|
||||
|
||||
#include "module.h"
|
||||
|
||||
class ModuleManager
|
||||
{
|
||||
public:
|
||||
void discoverAndLoadModules();
|
||||
bool discoverModule(const std::string& file);
|
||||
void unloadModules();
|
||||
|
||||
ModulePtr getModule(const std::string& moduleName);
|
||||
|
||||
private:
|
||||
std::vector<ModulePtr> m_modules;
|
||||
};
|
||||
|
||||
extern ModuleManager g_modules;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user