-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Frityet/main
forgot to commit this whoops: Renamed PluginInfo.cs fields and split hooks into seperate file
- Loading branch information
Showing
3 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace H3VRMod | ||
{ | ||
public class Hooks | ||
{ | ||
public void Hook() | ||
{ | ||
|
||
} | ||
|
||
public void Unhook() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
using BepInEx; | ||
using System; | ||
using BepInEx; | ||
|
||
namespace H3VRMod | ||
{ | ||
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)] | ||
[BepInPlugin(PluginInfo.GUID, PluginInfo.NAME, PluginInfo.VERSION)] | ||
[BepInProcess("h3vr.exe")] | ||
public class Plugin : BaseUnityPlugin | ||
{ | ||
internal Hooks Hooks; | ||
|
||
public Plugin() | ||
{ | ||
Hook(); | ||
Hooks = new Hooks(); | ||
Hooks.Hook(); | ||
} | ||
|
||
private void OnDestroy() | ||
private void Awake() | ||
{ | ||
Unhook(); | ||
|
||
} | ||
|
||
private void Hook() | ||
private void Update() | ||
{ | ||
|
||
} | ||
|
||
private void Unhook() | ||
private void OnDestroy() | ||
{ | ||
|
||
Hooks.Unhook(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters