继续
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user