Package-level declarations

Types

Link copied to clipboard

捕捉资源账本结算服务。

Link copied to clipboard
data class BattleUnitMetadata(val creatureId: Long, val creatureSpeciesId: Long, val creatureInternalName: String, val creatureName: String, val level: Int, val requiredExperience: Int, val natureId: Long?, val captureRate: Int?, val ivs: Map<String, Int>, val evs: Map<String, Int>, val calculatedStats: Map<String, Int>)
Link copied to clipboard
data class CaptureBattleResult(val success: Boolean, val sessionId: String, val targetUnitId: String, val ballItemId: String, val shakes: Int, val reason: String, val battleEnded: Boolean, val finalRate: Double, val session: BattleSessionQuery, val capturedCreature: CapturedCreatureSummary? = null)
Link copied to clipboard
data class CaptureCommand(val playerId: String, val ballItemId: String, val targetUnitId: String, val sourceUnitId: String? = null)
Link copied to clipboard
data class CapturedCreatureSummary(val ownedCreatureId: String, val creatureId: String, val creatureSpeciesId: String, val creatureInternalName: String, val creatureName: String)
Link copied to clipboard
data class CaptureInventoryContext(val playerId: Long, val ballItemId: Long, val ballItemInternalName: String)

捕捉结算里用于扣库存的最小上下文。

Link copied to clipboard

默认捕捉账本结算实现。

Link copied to clipboard
@Service
open class DefaultCapturePreparationService(itemReader: ItemReader, speciesReader: SpeciesReader, playerRepository: PlayerRepository, ownedCreatureRepository: OwnedCreatureRepository)
Link copied to clipboard
@Service
open class DefaultOwnedCreatureService(creatureStorageBoxRepository: CreatureStorageBoxRepository, ownedCreatureRepository: OwnedCreatureRepository, ownedCreatureStatRepository: OwnedCreatureStatRepository, ownedCreatureMoveRepository: OwnedCreatureMoveRepository, statReader: StatReader, moveReader: MoveReader)
Link copied to clipboard
@Service
open class DefaultPlayerInventoryService(playerInventoryItemRepository: PlayerInventoryItemRepository)
Link copied to clipboard
data class PreparedCaptureContext(val sessionId: String, val playerId: Long, val ballItemId: Long, val ballItemInternalName: String, val targetUnitId: String, val sourceUnitId: String?, val snapshot: BattleRuntimeSnapshot, val targetUnit: UnitState, val sourceUnit: UnitState?, val targetMetadata: BattleUnitMetadata, val battleContext: CaptureContext)