![]() |
Botcraft 1.21.4
|
Public Member Functions | |
PluginLoader () | |
~PluginLoader () | |
std::shared_ptr< PluginObject > | CreatePluginObject (const char *identifier) |
Private Attributes | |
std::unordered_map< std::string, void * > | plugins |
std::unordered_map< std::string, std::function< PluginObject *(const char *)> > | GetPluginObject_funcs |
std::unordered_map< std::string, std::function< void(PluginObject *)> > | DestroyPluginObject_funcs |
std::unordered_map< std::string, std::string > | cached_identifier_to_plugin |
Definition at line 49 of file PluginLoader.cpp.
|
inline |
Definition at line 52 of file PluginLoader.cpp.
References ProtocolCraft::Internal::DestroyPluginObject, DestroyPluginObject_funcs, GetKnownProcAddress, ProtocolCraft::Internal::GetPluginObject, GetPluginObject_funcs, plugins, and ProtocolCraft::Internal::plugins_folder.
|
inline |
Definition at line 75 of file PluginLoader.cpp.
References cached_identifier_to_plugin, DestroyPluginObject_funcs, GetPluginObject_funcs, and plugins.
|
inline |
Definition at line 91 of file PluginLoader.cpp.
References cached_identifier_to_plugin, DestroyPluginObject_funcs, and GetPluginObject_funcs.
Referenced by ProtocolCraft::CreateObjectFromPlugin().
|
private |
Definition at line 131 of file PluginLoader.cpp.
Referenced by CreatePluginObject(), and ~PluginLoader().
|
private |
Definition at line 129 of file PluginLoader.cpp.
Referenced by CreatePluginObject(), PluginLoader(), and ~PluginLoader().
|
private |
Definition at line 128 of file PluginLoader.cpp.
Referenced by CreatePluginObject(), PluginLoader(), and ~PluginLoader().
|
private |
Definition at line 126 of file PluginLoader.cpp.
Referenced by PluginLoader(), and ~PluginLoader().