Rename listeners
This commit is contained in:
@@ -6,7 +6,7 @@ import eventDemo.app.event.GameEventBus
|
||||
import eventDemo.app.event.GameEventHandler
|
||||
import eventDemo.app.event.GameEventStream
|
||||
import eventDemo.app.event.projection.GameStateRepository
|
||||
import eventDemo.app.eventListener.GameEventPlayerNotificationListener
|
||||
import eventDemo.app.eventListener.PlayerNotificationEventListener
|
||||
import eventDemo.libs.command.CommandStreamChannelBuilder
|
||||
import eventDemo.libs.event.EventBusInMemory
|
||||
import eventDemo.libs.event.EventStreamInMemory
|
||||
@@ -41,5 +41,5 @@ val appKoinModule =
|
||||
|
||||
singleOf(::GameEventHandler)
|
||||
singleOf(::GameCommandHandler)
|
||||
singleOf(::GameEventPlayerNotificationListener)
|
||||
singleOf(::PlayerNotificationEventListener)
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package eventDemo.configuration
|
||||
|
||||
import eventDemo.app.eventListener.GameEventReactionListener
|
||||
import eventDemo.app.eventListener.ReactionEventListener
|
||||
import io.ktor.server.application.Application
|
||||
import org.koin.ktor.ext.get
|
||||
|
||||
fun Application.configureGameListener() {
|
||||
GameEventReactionListener(get(), get(), get())
|
||||
ReactionEventListener(get(), get(), get())
|
||||
.init()
|
||||
}
|
||||
|
||||
@@ -2,14 +2,14 @@ package eventDemo.configuration
|
||||
|
||||
import eventDemo.app.command.GameCommandHandler
|
||||
import eventDemo.app.command.gameSocket
|
||||
import eventDemo.app.eventListener.GameEventPlayerNotificationListener
|
||||
import eventDemo.app.eventListener.PlayerNotificationEventListener
|
||||
import io.ktor.server.application.Application
|
||||
import io.ktor.server.routing.routing
|
||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
fun Application.declareWebSocketsGameRoute(
|
||||
playerNotificationListener: GameEventPlayerNotificationListener,
|
||||
playerNotificationListener: PlayerNotificationEventListener,
|
||||
commandHandler: GameCommandHandler,
|
||||
) {
|
||||
routing {
|
||||
|
||||
Reference in New Issue
Block a user