This commit is contained in:
Tsubasa6848
2024-01-03 08:35:58 +08:00
Unverified
parent 810600011a
commit 5df234806a
28 changed files with 7034 additions and 2204 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include <ll/api/plugin/NativePlugin.h>
#include <ll/api/event/ListenerBase.h>
namespace plugin {
class Plugin {
public:
Plugin(ll::plugin::NativePlugin& self);
Plugin(Plugin&&) = delete;
Plugin(const Plugin&) = delete;
Plugin& operator=(Plugin&&) = delete;
Plugin& operator=(const Plugin&) = delete;
~Plugin() = default;
/// @return True if the plugin is enabled successfully.
bool enable();
/// @return True if the plugin is disabled successfully.
bool disable();
private:
ll::plugin::NativePlugin& mSelf;
ll::event::ListenerPtr mSetupCommandEventListener;
};
} // namespace plugin