Test with generated hooks

This commit is contained in:
max committed 2024-09-08 20:58:13 +02:00
1 parent bd76fc1b25
commit 09089c35b9
9 files changed
+214 -3

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
namespace Nerfed.Runtime.Hook
{
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public class HookAttribute : Attribute
{
}
}
+11
View File
@@ -0,0 +1,11 @@
namespace Nerfed.Runtime.Hook
{
public static class HookTest
{
[Hook]
public static void Test()
{
Log.Info("Hook!");
}
}
}