From 46dea83699dd4ae1476066e8206765e9a66afb36 Mon Sep 17 00:00:00 2001 From: anth64 Date: Sun, 21 Jun 2026 12:18:19 +0200 Subject: [PATCH] docs(ICommandHookListener): add XML doc comments to ModId, Commands, Registration --- CommandHook/ICommandHookListener.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CommandHook/ICommandHookListener.cs b/CommandHook/ICommandHookListener.cs index a4bdeee..8a62944 100644 --- a/CommandHook/ICommandHookListener.cs +++ b/CommandHook/ICommandHookListener.cs @@ -2,9 +2,27 @@ using System.Collections.Generic; namespace CommandHook; +/// +/// Implement this to watch chat commands through CommandHook. Pass your +/// implementation to . +/// public interface ICommandHookListener { + /// + /// Your mod's id. Used as the namespace key so two mods can register + /// for the same command without colliding, and to find your existing + /// registration when you call again. + /// string ModId { get; } + + /// + /// The command names to watch, without the leading slash (e.g. "tp", not "/tp"). + /// Return null or an empty list to stop watching anything. + /// IReadOnlyList Commands { get; } + + /// + /// The Before/After delegates to invoke for the commands in . + /// CommandRegistration Registration { get; } }