rename GameCommandRunner to GameCommandActionRunner
This commit is contained in:
@@ -10,7 +10,7 @@ import eventDemo.app.event.projection.GameStateRepository
|
|||||||
import eventDemo.app.notification.Notification
|
import eventDemo.app.notification.Notification
|
||||||
import kotlinx.coroutines.channels.SendChannel
|
import kotlinx.coroutines.channels.SendChannel
|
||||||
|
|
||||||
class GameCommandRunner(
|
class GameCommandActionRunner(
|
||||||
private val eventHandler: GameEventHandler,
|
private val eventHandler: GameEventHandler,
|
||||||
private val gameStateRepository: GameStateRepository,
|
private val gameStateRepository: GameStateRepository,
|
||||||
) {
|
) {
|
||||||
@@ -16,7 +16,7 @@ import kotlinx.coroutines.channels.SendChannel
|
|||||||
*/
|
*/
|
||||||
class GameCommandHandler(
|
class GameCommandHandler(
|
||||||
private val commandStreamChannel: CommandStreamChannelBuilder<GameCommand>,
|
private val commandStreamChannel: CommandStreamChannelBuilder<GameCommand>,
|
||||||
private val runner: GameCommandRunner,
|
private val runner: GameCommandActionRunner,
|
||||||
) {
|
) {
|
||||||
private val logger = KotlinLogging.logger { }
|
private val logger = KotlinLogging.logger { }
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package eventDemo.configuration
|
package eventDemo.configuration
|
||||||
|
|
||||||
|
import eventDemo.app.command.GameCommandActionRunner
|
||||||
import eventDemo.app.command.GameCommandHandler
|
import eventDemo.app.command.GameCommandHandler
|
||||||
import eventDemo.app.command.GameCommandRunner
|
|
||||||
import eventDemo.app.command.command.GameCommand
|
import eventDemo.app.command.command.GameCommand
|
||||||
import eventDemo.app.event.GameEventBus
|
import eventDemo.app.event.GameEventBus
|
||||||
import eventDemo.app.event.GameEventHandler
|
import eventDemo.app.event.GameEventHandler
|
||||||
@@ -46,7 +46,7 @@ val appKoinModule =
|
|||||||
|
|
||||||
singleOf(::VersionBuilderLocal) bind VersionBuilder::class
|
singleOf(::VersionBuilderLocal) bind VersionBuilder::class
|
||||||
singleOf(::GameEventHandler)
|
singleOf(::GameEventHandler)
|
||||||
singleOf(::GameCommandRunner)
|
singleOf(::GameCommandActionRunner)
|
||||||
singleOf(::GameCommandHandler)
|
singleOf(::GameCommandHandler)
|
||||||
singleOf(::PlayerNotificationEventListener)
|
singleOf(::PlayerNotificationEventListener)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user