docs(CommandDelegate): add XML doc comments to CommandBeforeDelegate and CommandAfterDelegate

This commit is contained in:
2026-06-21 12:18:19 +02:00
parent 47f123ba9a
commit beedb8db5b
+11
View File
@@ -2,5 +2,16 @@ using Vintagestory.API.Common;
namespace CommandHook; namespace CommandHook;
/// <summary>
/// Invoked before a watched command runs. Set <c>data.Cancel = true</c> to stop
/// the command from executing.
/// </summary>
/// <param name="data">The command data, passed by ref so you can read or cancel it.</param>
public delegate void CommandBeforeDelegate(ref CommandData data); public delegate void CommandBeforeDelegate(ref CommandData data);
/// <summary>
/// Invoked after a watched command has run. Not invoked if a Before listener cancelled it.
/// </summary>
/// <param name="data">The command data, passed by ref for consistency with <see cref="CommandBeforeDelegate"/>.</param>
/// <param name="result">The result the command produced.</param>
public delegate void CommandAfterDelegate(ref CommandData data, TextCommandResult result); public delegate void CommandAfterDelegate(ref CommandData data, TextCommandResult result);