Test with generated hooks

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

View File

@ -0,0 +1,7 @@
namespace Nerfed.Runtime.Hook
{
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public class HookAttribute : Attribute
{
}
}

View File

@ -0,0 +1,11 @@
namespace Nerfed.Runtime.Hook
{
public static class HookTest
{
[Hook]
public static void Test()
{
Log.Info("Hook!");
}
}
}