This commit is contained in:
SoulliesOfficial
2025-10-24 09:11:22 -04:00
parent 61a397dd4c
commit 76157e3cb1
329 changed files with 8609 additions and 4549 deletions

View File

@@ -70,7 +70,7 @@ namespace SLSFramework.General
*/
}
public void AddCommand(CommandBase command, CommandContext context = null)
public CommandBase AddCommand(CommandBase command, CommandContext context = null)
{
context ??= new CommandContext();
// 将指令和其上下文入队
@@ -80,6 +80,8 @@ namespace SLSFramework.General
// 如果队列当前不忙,这个调用会立即开始处理我们刚刚添加的指令。
// 如果队列正忙,这个调用什么也不做,因为当前指令完成后会自动处理下一个。
ProcessNextInQueue();
return command;
}