Init enter game

This commit is contained in:
Naruse
2025-06-14 11:15:32 +08:00
commit 6a03b39f07
568 changed files with 92872 additions and 0 deletions

View File

@@ -0,0 +1,19 @@

namespace KianaBH.GameServer.Command;
public static class CommandExecutor
{
public delegate void RunCommand(ICommandSender sender, string cmd);
public static event RunCommand? OnRunCommand;
public static void ExecuteCommand(ICommandSender sender, string cmd)
{
OnRunCommand?.Invoke(sender, cmd);
}
public static void ConsoleExcuteCommand(string input)
{
CommandManager.HandleCommand(input, new ConsoleCommandSender(CommandManager.Logger));
}
}