From d5868783259634fc343b0fcb88ea2fcdafa2a676 Mon Sep 17 00:00:00 2001 From: anth64 Date: Tue, 2 Jun 2026 23:22:40 +0200 Subject: [PATCH] feat: add CommandRegistration struct --- CommandHook/CommandRegistration.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CommandHook/CommandRegistration.cs 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; + } +}