BasePlugin.cs 389 B

123456789101112131415161718192021
  1. namespace BepInEx.NetLauncher
  2. {
  3. public abstract class BasePlugin
  4. {
  5. protected HarmonyLib.Harmony HarmonyInstance { get; }
  6. protected BasePlugin()
  7. {
  8. //var info = PluginInfoHelper.GetPluginInfo(this);
  9. //HarmonyInstance = new HarmonyLib.Harmony("BepInEx.Plugin." + info.GUID);
  10. }
  11. public abstract void Load();
  12. public virtual bool Unload()
  13. {
  14. return false;
  15. }
  16. }
  17. }