avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-game-service
/
io.github.lishangbu.avalon.game.capture
/
DefaultPlayerInventoryService
Default
Player
Inventory
Service
@
Service
open
class
DefaultPlayerInventoryService
(
playerInventoryItemRepository
:
PlayerInventoryItemRepository
)
Members
Constructors
Default
Player
Inventory
Service
Link copied to clipboard
constructor
(
playerInventoryItemRepository
:
PlayerInventoryItemRepository
)
Functions
consume
Link copied to clipboard
@
Transactional
(
rollbackFor
=
[
Exception::class
]
)
open
fun
consume
(
playerId
:
Long
,
itemId
:
Long
,
count
:
Int
=
1
)
ensure
Available
Link copied to clipboard
open
fun
ensureAvailable
(
playerId
:
Long
,
itemId
:
Long
,
count
:
Int
=
1
)