Botcraft 1.21.4
Loading...
Searching...
No Matches
ProtocolCraft::Internal::PluginLoader Class Reference

Public Member Functions

 PluginLoader ()
 
 ~PluginLoader ()
 
std::shared_ptr< PluginObjectCreatePluginObject (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
 

Detailed Description

Definition at line 49 of file PluginLoader.cpp.

Constructor & Destructor Documentation

◆ PluginLoader()

◆ ~PluginLoader()

ProtocolCraft::Internal::PluginLoader::~PluginLoader ( )
inline

Member Function Documentation

◆ CreatePluginObject()

std::shared_ptr< PluginObject > ProtocolCraft::Internal::PluginLoader::CreatePluginObject ( const char *  identifier)
inline

Member Data Documentation

◆ cached_identifier_to_plugin

std::unordered_map<std::string, std::string> ProtocolCraft::Internal::PluginLoader::cached_identifier_to_plugin
private

Definition at line 131 of file PluginLoader.cpp.

Referenced by CreatePluginObject(), and ~PluginLoader().

◆ DestroyPluginObject_funcs

std::unordered_map<std::string, std::function<void(PluginObject*)> > ProtocolCraft::Internal::PluginLoader::DestroyPluginObject_funcs
private

Definition at line 129 of file PluginLoader.cpp.

Referenced by CreatePluginObject(), PluginLoader(), and ~PluginLoader().

◆ GetPluginObject_funcs

std::unordered_map<std::string, std::function<PluginObject* (const char*)> > ProtocolCraft::Internal::PluginLoader::GetPluginObject_funcs
private

Definition at line 128 of file PluginLoader.cpp.

Referenced by CreatePluginObject(), PluginLoader(), and ~PluginLoader().

◆ plugins

std::unordered_map<std::string, void*> ProtocolCraft::Internal::PluginLoader::plugins
private

Definition at line 126 of file PluginLoader.cpp.

Referenced by PluginLoader(), and ~PluginLoader().


The documentation for this class was generated from the following file: