Rename listeners
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package eventDemo.app.command
|
||||
|
||||
import eventDemo.app.entity.Player
|
||||
import eventDemo.app.eventListener.GameEventPlayerNotificationListener
|
||||
import eventDemo.app.eventListener.PlayerNotificationEventListener
|
||||
import eventDemo.app.notification.Notification
|
||||
import eventDemo.libs.fromFrameChannel
|
||||
import eventDemo.libs.toObjectChannel
|
||||
@@ -18,7 +18,7 @@ import kotlinx.coroutines.launch
|
||||
|
||||
@DelicateCoroutinesApi
|
||||
fun Route.gameSocket(
|
||||
playerNotificationListener: GameEventPlayerNotificationListener,
|
||||
playerNotificationListener: PlayerNotificationEventListener,
|
||||
commandHandler: GameCommandHandler,
|
||||
) {
|
||||
authenticate {
|
||||
|
||||
@@ -27,7 +27,7 @@ import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import kotlinx.coroutines.channels.SendChannel
|
||||
import kotlinx.coroutines.channels.trySendBlocking
|
||||
|
||||
class GameEventPlayerNotificationListener(
|
||||
class PlayerNotificationEventListener(
|
||||
private val eventBus: GameEventBus,
|
||||
private val gameStateRepository: GameStateRepository,
|
||||
) {
|
||||
@@ -10,7 +10,7 @@ import eventDemo.app.event.projection.GameState
|
||||
import eventDemo.app.event.projection.GameStateRepository
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
|
||||
class GameEventReactionListener(
|
||||
class ReactionEventListener(
|
||||
private val eventBus: GameEventBus,
|
||||
private val eventHandler: GameEventHandler,
|
||||
private val gameStateRepository: GameStateRepository,
|
||||
Reference in New Issue
Block a user