Move GameStateRepository

This commit is contained in:
2025-03-17 20:18:13 +01:00
parent 1a96c68521
commit 8074881d57
17 changed files with 24 additions and 23 deletions

View File

@@ -4,9 +4,9 @@ import eventDemo.business.entity.GameId
import eventDemo.business.event.GameEventHandler
import eventDemo.business.event.GameEventStore
import eventDemo.business.event.event.GameEvent
import eventDemo.business.event.projection.GameState
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.apply
import eventDemo.business.event.projection.gameState.GameState
import eventDemo.business.event.projection.gameState.GameStateRepository
import eventDemo.business.event.projection.gameState.apply
import eventDemo.libs.event.projection.ProjectionSnapshotRepositoryInMemory
import eventDemo.libs.event.projection.SnapshotConfig

View File

@@ -1,7 +1,7 @@
package eventDemo.adapter.interfaceLayer
import eventDemo.business.entity.GameId
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameStateRepository
import eventDemo.configuration.serializer.GameIdSerializer
import io.ktor.http.HttpStatusCode
import io.ktor.resources.Resource

View File

@@ -3,7 +3,7 @@ package eventDemo.business.command.action
import eventDemo.business.command.CommandException
import eventDemo.business.command.command.ICantPlayCommand
import eventDemo.business.event.event.PlayerHavePassEvent
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameStateRepository
/**
* A command to perform an action to play a new card

View File

@@ -3,7 +3,7 @@ package eventDemo.business.command.action
import eventDemo.business.command.CommandException
import eventDemo.business.command.command.IWantToJoinTheGameCommand
import eventDemo.business.event.event.NewPlayerEvent
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameStateRepository
/**
* A command to perform an action to play a new card

View File

@@ -3,7 +3,7 @@ package eventDemo.business.command.action
import eventDemo.business.command.CommandException
import eventDemo.business.command.command.IWantToPlayCardCommand
import eventDemo.business.event.event.CardIsPlayedEvent
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameStateRepository
/**
* A command to perform an action to play a new card

View File

@@ -3,7 +3,7 @@ package eventDemo.business.command.action
import eventDemo.business.command.CommandException
import eventDemo.business.command.command.IamReadyToPlayCommand
import eventDemo.business.event.event.PlayerReadyEvent
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameStateRepository
/**
* A command to set as ready to play

View File

@@ -12,7 +12,7 @@ import eventDemo.business.event.event.PlayerChoseColorEvent
import eventDemo.business.event.event.PlayerHavePassEvent
import eventDemo.business.event.event.PlayerReadyEvent
import eventDemo.business.event.event.PlayerWinEvent
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameStateRepository
import eventDemo.business.notification.ItsTheTurnOfNotification
import eventDemo.business.notification.Notification
import eventDemo.business.notification.PlayerAsJoinTheGameNotification

View File

@@ -6,8 +6,8 @@ import eventDemo.business.event.event.GameEvent
import eventDemo.business.event.event.GameStartedEvent
import eventDemo.business.event.event.PlayerReadyEvent
import eventDemo.business.event.event.PlayerWinEvent
import eventDemo.business.event.projection.GameState
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameState
import eventDemo.business.event.projection.gameState.GameStateRepository
import io.github.oshai.kotlinlogging.KotlinLogging
import io.github.oshai.kotlinlogging.withLoggingContext
import java.util.concurrent.ConcurrentSkipListSet

View File

@@ -1,9 +1,10 @@
package eventDemo.business.event.projection
package eventDemo.business.event.projection.gameState
import eventDemo.business.entity.Card
import eventDemo.business.entity.Deck
import eventDemo.business.entity.GameId
import eventDemo.business.entity.Player
import eventDemo.business.event.projection.Projection
import kotlinx.serialization.Serializable
@Serializable

View File

@@ -1,4 +1,4 @@
package eventDemo.business.event.projection
package eventDemo.business.event.projection.gameState
import eventDemo.business.entity.Card
import eventDemo.business.event.event.CardIsPlayedEvent

View File

@@ -1,4 +1,4 @@
package eventDemo.business.event.projection
package eventDemo.business.event.projection.gameState
import eventDemo.business.entity.GameId
import eventDemo.business.event.event.GameEvent

View File

@@ -5,7 +5,7 @@ import eventDemo.adapter.infrastructureLayer.event.GameEventStoreInMemory
import eventDemo.adapter.infrastructureLayer.event.projection.GameStateRepositoryInMemory
import eventDemo.business.event.GameEventBus
import eventDemo.business.event.GameEventStore
import eventDemo.business.event.projection.GameStateRepository
import eventDemo.business.event.projection.gameState.GameStateRepository
import eventDemo.libs.event.projection.SnapshotConfig
import org.koin.core.module.Module
import org.koin.dsl.bind