From beedb8db5b8acbaaf65cb3b088514951625266bb Mon Sep 17 00:00:00 2001 From: anth64 Date: Sun, 21 Jun 2026 12:18:19 +0200 Subject: [PATCH] docs(CommandDelegate): add XML doc comments to CommandBeforeDelegate and CommandAfterDelegate --- CommandHook/CommandDelegate.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CommandHook/CommandDelegate.cs b/CommandHook/CommandDelegate.cs index 78cbf51..20ada7f 100644 --- a/CommandHook/CommandDelegate.cs +++ b/CommandHook/CommandDelegate.cs @@ -2,5 +2,16 @@ using Vintagestory.API.Common; namespace CommandHook; +/// +/// Invoked before a watched command runs. Set data.Cancel = true to stop +/// the command from executing. +/// +/// The command data, passed by ref so you can read or cancel it. public delegate void CommandBeforeDelegate(ref CommandData data); + +/// +/// Invoked after a watched command has run. Not invoked if a Before listener cancelled it. +/// +/// The command data, passed by ref for consistency with . +/// The result the command produced. public delegate void CommandAfterDelegate(ref CommandData data, TextCommandResult result);