From 96306b490381fc4b64bd004e74217c4a7da2712e Mon Sep 17 00:00:00 2001 From: anth64 Date: Wed, 3 Jun 2026 18:50:58 +0200 Subject: [PATCH] feat: add WildcardModRegistration and ModRegistration structs --- CommandHook/ModRegistration.cs | 13 +++++++++++++ CommandHook/WildcardModRegistration.cs | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 CommandHook/ModRegistration.cs create mode 100644 CommandHook/WildcardModRegistration.cs diff --git a/CommandHook/ModRegistration.cs b/CommandHook/ModRegistration.cs new file mode 100644 index 0000000..b17e59c --- /dev/null +++ b/CommandHook/ModRegistration.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; + +namespace CommandHook; + +public struct ModRegistration +{ + public readonly Dictionary Commands; + + public ModRegistration(Dictionary commands) + { + Commands = commands; + } +} diff --git a/CommandHook/WildcardModRegistration.cs b/CommandHook/WildcardModRegistration.cs new file mode 100644 index 0000000..e83bd79 --- /dev/null +++ b/CommandHook/WildcardModRegistration.cs @@ -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; + } +}