Files
GMLIB-LegacyRemoteCallApi/src/Entry.h
T
2024-05-27 20:33:44 +08:00

34 lines
836 B
C++

#pragma once
#include <ll/api/plugin/NativePlugin.h>
#include <ll/api/plugin/RegisterHelper.h>
namespace GMLIB {
class LegacyRemoteCallApi {
public:
static std::unique_ptr<LegacyRemoteCallApi>& getInstance();
LegacyRemoteCallApi(ll::plugin::NativePlugin& self) : mSelf(self) {}
[[nodiscard]] ll::plugin::NativePlugin& getSelf() const { return mSelf; }
/// @return True if the plugin is loaded successfully.
bool load();
/// @return True if the plugin is enabled successfully.
bool enable();
/// @return True if the plugin is disabled successfully.
bool disable();
// TODO: Implement this method if you need to unload the plugin.
// /// @return True if the plugin is unloaded successfully.
// bool unload();
private:
ll::plugin::NativePlugin& mSelf;
};
} // namespace GMLIB