reload lingering modules by name
This commit is contained in:
@@ -25,13 +25,13 @@ namespace Archimedes {
|
||||
|
||||
virtual void run() {}
|
||||
virtual bool onEvent(const Event& e) { return false; }
|
||||
virtual void onLoad() {};
|
||||
|
||||
virtual void onLoad() {}
|
||||
virtual void onUnload() {}
|
||||
|
||||
operator std::string() const { return name; }
|
||||
void* getHandle() { return handle; }
|
||||
|
||||
//std::any getData(std::string s) { return data[s.c_str()]; };
|
||||
|
||||
protected:
|
||||
std::string name;
|
||||
|
||||
@@ -42,7 +42,6 @@ namespace Archimedes {
|
||||
std::unordered_map<std::string, std::variant<std::string, Module*>> exts;
|
||||
std::unordered_map<std::string, Module*> moduleInstances;
|
||||
|
||||
//std::unordered_map<std::string, std::any> data;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user