adapt: adapt GMLIB v0.9.8
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "Entry.h"
|
||||
#include "Global.h"
|
||||
|
||||
ll::Logger logger(PLUGIN_NAME);
|
||||
|
||||
namespace DeathMessages {
|
||||
|
||||
std::unique_ptr<Entry>& Entry::getInstance() {
|
||||
static std::unique_ptr<Entry> instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
bool Entry::load() {
|
||||
initPlugin();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Entry::enable() {
|
||||
RegisterDamageDefinition();
|
||||
ListenEvents();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Entry::disable() { return true; }
|
||||
|
||||
} // namespace DeathMessages
|
||||
|
||||
LL_REGISTER_PLUGIN(DeathMessages::Entry, DeathMessages::Entry::getInstance());
|
||||
Reference in New Issue
Block a user