game-common / pragma.inventory / RewardSelectorPlugin /

RewardSelectorPlugin #

interface RewardSelectorPlugin

Plugin to define the behavior of rolling random rewards from RewardGrants.

Functions #

NameSummary

init

abstract fun init(content: InventoryServiceContent)

Provides a copy of InventoryServiceContent to the plugin for future reference use.

select

abstract suspend fun select(playerId: <ERROR CLASS>, rewardSlotId: String): String?

Selects a reward from a reward slot.