Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
PluginsManager Class Reference

Plugin Manager. More...

#include <plugins.h>

Public Member Functions

 PluginsManager ()
 Construct a new Plugins Manager object.
 
 ~PluginsManager ()
 Destroy the Plugins Manager object.
 
void load ()
 Load all plugins in plugin folder.
 
const std::vector< std::shared_ptr< Plugin > > & getPlugins () const
 Get the registered plugins.
 

Static Public Member Functions

static PluginsManagerinst ()
 Gets the instance of the plugin manager.
 

Detailed Description

Plugin Manager.

Pretty transparent huh ?

Member Function Documentation

◆ getPlugins()

const std::vector< std::shared_ptr< Plugin > > & PluginsManager::getPlugins ( ) const
inline

Get the registered plugins.

Returns
const std::vector<std::shared_ptr<Plugin>>& plugins list

◆ inst()

static PluginsManager & PluginsManager::inst ( )
inlinestatic

Gets the instance of the plugin manager.

Returns
PluginsManager& the instance

◆ load()

void PluginsManager::load ( )

Load all plugins in plugin folder.

Can be used to reload plugins as well


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