feat: add WildcardModRegistration and ModRegistration structs
This commit is contained in:
1 parent
1514c50d4e
commit
96306b4903
2 files changed
+26
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user