feat: add CommandRegistration struct
This commit is contained in:
1 parent
b60b0b98b7
commit
d586878325
1 file changed
+19
@@ -0,0 +1,19 @@
|
|||||||
|
namespace CommandHook;
|
||||||
|
|
||||||
|
public struct CommandRegistration
|
||||||
|
{
|
||||||
|
public readonly string CommandFilter;
|
||||||
|
public readonly CommandHookDelegate? Before;
|
||||||
|
public readonly CommandHookDelegate? After;
|
||||||
|
|
||||||
|
public CommandRegistration(
|
||||||
|
string commandFilter,
|
||||||
|
CommandHookDelegate? before,
|
||||||
|
CommandHookDelegate? after
|
||||||
|
)
|
||||||
|
{
|
||||||
|
CommandFilter = commandFilter;
|
||||||
|
Before = before;
|
||||||
|
After = after;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user