renamed pluinfolders

This commit is contained in:
mrbesen 2020-02-22 02:36:43 +01:00
parent d2b861eb7f
commit 6be08c97a5
4 changed files with 12 additions and 12 deletions

View File

@ -8,21 +8,21 @@ extern "C" {
class SimplePlugin : public CppPlugin { class SimplePlugin : public CppPlugin {
public: public:
virtual void onLoad(); virtual void onLoad(JNIEnv*);
virtual void onEnable(); virtual void onEnable(JNIEnv*);
virtual void onDisable(); virtual void onDisable(JNIEnv*);
//virtual std::map<std::string, eventfptr> getEvents(); //virtual std::map<std::string, eventfptr> getEvents();
}; };
void SimplePlugin::onLoad() { void SimplePlugin::onLoad(JNIEnv*) {
std::cout << "SimplePLugin::onLoad();" << std::endl; std::cout << "SimplePLugin::onLoad();" << std::endl;
} }
void SimplePlugin::onEnable() { void SimplePlugin::onEnable(JNIEnv*) {
std::cout << "SimplePLugin::onEnable();" << std::endl; std::cout << "SimplePLugin::onEnable();" << std::endl;
} }
void SimplePlugin::onDisable() { void SimplePlugin::onDisable(JNIEnv*) {
std::cout << "SimplePLugin::onDisable();" << std::endl; std::cout << "SimplePLugin::onDisable();" << std::endl;
} }

View File

@ -8,21 +8,21 @@ extern "C" {
class EventsPlugin : public CppPlugin { class EventsPlugin : public CppPlugin {
public: public:
virtual void onLoad(); virtual void onLoad(JNIEnv*);
virtual void onEnable(); virtual void onEnable(JNIEnv*);
virtual void onDisable(); virtual void onDisable(JNIEnv*);
virtual std::map<std::string, eventfptr> getEvents(); virtual std::map<std::string, eventfptr> getEvents();
}; };
void EventsPlugin::onLoad() { void EventsPlugin::onLoad(JNIEnv*) {
std::cout << "Events::onLoad();" << std::endl; std::cout << "Events::onLoad();" << std::endl;
} }
void EventsPlugin::onEnable() { void EventsPlugin::onEnable(JNIEnv*) {
std::cout << "Events::onEnable();" << std::endl; std::cout << "Events::onEnable();" << std::endl;
} }
void EventsPlugin::onDisable() { void EventsPlugin::onDisable(JNIEnv*) {
std::cout << "Events::onDisable();" << std::endl; std::cout << "Events::onDisable();" << std::endl;
} }