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