2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2012-09-23 15:09:57 -07:00
|
|
|
#include "Plugin.h"
|
2013-01-11 20:46:01 -08:00
|
|
|
#include "Player.h"
|
2013-02-13 11:22:08 -08:00
|
|
|
#include "World.h"
|
2013-06-29 08:30:05 -07:00
|
|
|
#include "CommandOutput.h"
|
2013-08-08 00:13:13 -07:00
|
|
|
#include "Mobs/Monster.h"
|
2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-08 07:01:26 -07:00
|
|
|
cPlugin::cPlugin(const AString & a_PluginDirectory) :
|
|
|
|
m_Language(E_CPP),
|
|
|
|
m_Name(a_PluginDirectory),
|
|
|
|
m_Version(0),
|
|
|
|
m_Directory(a_PluginDirectory)
|
2012-06-14 06:06:06 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-08-03 04:53:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-11 20:46:01 -08:00
|
|
|
cPlugin::~cPlugin()
|
2012-06-14 06:06:06 -07:00
|
|
|
{
|
2013-02-05 11:57:22 -08:00
|
|
|
LOGD("Destroying plugin \"%s\".", m_Name.c_str());
|
2012-06-14 06:06:06 -07:00
|
|
|
}
|
|
|
|
|
2012-08-03 04:53:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-13 16:34:47 -07:00
|
|
|
AString cPlugin::GetLocalDirectory(void) const
|
|
|
|
{
|
|
|
|
return std::string("Plugins/") + m_Directory;
|
|
|
|
}
|