Files
GMLIB-LegacyRemoteCallApi/src/Plugin.h
T
Caixukun1919810 9cbe76a260 Initial commit
2024-02-05 19:43:25 +08:00

28 lines
600 B
C++

#pragma once
#include <ll/api/plugin/NativePlugin.h>
namespace plugin {
class Plugin {
public:
explicit 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;
};
} // namespace plugin