DefaultPlayerInventoryService

@Service
open class DefaultPlayerInventoryService(playerInventoryItemRepository: PlayerInventoryItemRepository)

Constructors

Link copied to clipboard
constructor(playerInventoryItemRepository: PlayerInventoryItemRepository)

Functions

Link copied to clipboard
@Transactional(rollbackFor = [Exception::class])
open fun consume(playerId: Long, itemId: Long, count: Int = 1)
Link copied to clipboard
open fun ensureAvailable(playerId: Long, itemId: Long, count: Int = 1)