adapt: adapt GMLIB v0.9.8

This commit is contained in:
Tsubasa6848
2024-03-25 18:40:11 +08:00
Unverified
parent 199602e80a
commit f064f674b7
10 changed files with 75 additions and 102 deletions
+28
View File
@@ -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());