feat: add WildcardModRegistration and ModRegistration structs

This commit is contained in:
2026-06-03 18:50:58 +02:00
parent 1514c50d4e
commit 96306b4903
2 changed files with 26 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
using System.Collections.Generic;
namespace CommandHook;
public struct ModRegistration
{
public readonly Dictionary<string, CommandRegistration> Commands;
public ModRegistration(Dictionary<string, CommandRegistration> commands)
{
Commands = commands;
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace CommandHook;
public struct WildcardModRegistration
{
public readonly CommandHookDelegate? Before;
public readonly CommandHookDelegate? After;
public WildcardModRegistration(CommandHookDelegate? before, CommandHookDelegate? after)
{
Before = before;
After = after;
}
}