コード例 #1
0
 private void Shutdown()
 {
     PluginLog.Log("Disabling Hook");
     started = false;
     Address = null;
     SetHotbarLock.Disable();
     SetHotbarLock = null;
 }
コード例 #2
0
 private void Startup()
 {
     Address = new LockAddressResolver();
     Address.Setup(PluginInterface.TargetModuleScanner);
     PluginLog.Log($"Address Found: {Address.LockFunction.ToInt64():X}");
     SetHotbarLock = new Hook <OnHotbarLock>(Address.LockFunction, new OnHotbarLock(HandleOnHotbarLock));
     SetHotbarLock.Enable();
     PluginLog.Log("Hook Enabled");
     started = true;
 }