feat: add WildcardModRegistration and ModRegistration structs
This commit is contained in:
@@ -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