create GameCommandRunner to extract business logic

This commit is contained in:
2025-04-14 23:39:41 +02:00
parent a2756d7fdb
commit 28075feff2
9 changed files with 80 additions and 37 deletions
@@ -1,6 +1,7 @@
package eventDemo.configuration
import eventDemo.app.command.GameCommandHandler
import eventDemo.app.command.GameCommandRunner
import eventDemo.app.command.command.GameCommand
import eventDemo.app.event.GameEventBus
import eventDemo.app.event.GameEventHandler
@@ -40,6 +41,7 @@ val appKoinModule =
}
singleOf(::GameEventHandler)
singleOf(::GameCommandRunner)
singleOf(::GameCommandHandler)
singleOf(::PlayerNotificationEventListener)
}