refactor: move CommandHandler to libs

This commit is contained in:
2025-04-16 00:46:13 +02:00
parent 1f995b6ed9
commit f03265292a
7 changed files with 189 additions and 93 deletions
@@ -56,7 +56,7 @@ private fun DefaultWebSocketServerSession.runWebSocket(
// TODO change GlobalScope
GlobalScope.launch {
commandHandler.handle(
commandHandler.handleIncomingPlayerCommands(
currentPlayer,
gameId,
toObjectChannel(incoming),