diff --git a/GFramework.Core/command/EmptyCommentInput.cs b/GFramework.Core/command/EmptyCommandInput.cs similarity index 76% rename from GFramework.Core/command/EmptyCommentInput.cs rename to GFramework.Core/command/EmptyCommandInput.cs index 2d4df6e..0743d3c 100644 --- a/GFramework.Core/command/EmptyCommentInput.cs +++ b/GFramework.Core/command/EmptyCommandInput.cs @@ -1,4 +1,4 @@ -using GFramework.Core.Abstractions.command; +using GFramework.Core.Abstractions.command; namespace GFramework.Core.command; @@ -9,4 +9,4 @@ namespace GFramework.Core.command; /// 该类实现了ICommandInput接口,作为命令模式中的输入参数载体 /// 通常用于不需要额外输入参数的简单命令操作 /// -public sealed class EmptyCommentInput : ICommandInput; \ No newline at end of file +public sealed class EmptyCommandInput : ICommandInput; diff --git a/GFramework.Core/command/README.md b/GFramework.Core/command/README.md index 139e1a2..a84e49a 100644 --- a/GFramework.Core/command/README.md +++ b/GFramework.Core/command/README.md @@ -174,17 +174,16 @@ var result = commandBus.Send(new CalculateDamageCommand(new CalculateDamageComma ## EmptyCommandInput - 空命令输入 -当命令不需要输入参数时,可以使用 [EmptyCommentInput](file:///d:/Project/Rider/GFramework/GFramework.Core/command/EmptyCommentInput.cs#L7-L11) -类: +当命令不需要输入参数时,可以使用 `EmptyCommandInput` 类: ```csharp -public class SimpleActionCommand : AbstractCommand +public class SimpleActionCommand : AbstractCommand { - public SimpleActionCommand(EmptyCommentInput input) : base(input) + public SimpleActionCommand(EmptyCommandInput input) : base(input) { } - protected override void OnExecute(EmptyCommentInput input) + protected override void OnExecute(EmptyCommandInput input) { // 执行简单操作,无需额外参数 this.SendEvent(new SimpleActionEvent());