diff --git a/CommandHook/CommandRegistration.cs b/CommandHook/CommandRegistration.cs new file mode 100644 index 0000000..416a225 --- /dev/null +++ b/CommandHook/CommandRegistration.cs @@ -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; + } +}