game-common / pragma.inventory / InventoryModifications /

InventoryModifications #

data class InventoryModifications(rewardGrants: List<RewardGrant> = listOf(), instancedItemServerGrants: List<InstancedItemServerGrant> = listOf(), stackableItemGrants: List<StackableItemGrant> = listOf(), serverInstancedItemUpdates: List<ServerInstancedItemUpdate> = listOf(), instancedItemsToDestroy: List<<ERROR CLASS>> = listOf())

Object returned by inventory plugins to perform inventory operations. In some cases, these modifications may be in addition to a primary modification like the instanced item being created by InstancedItemPlugin.newInstanced.

Constructors #

InventoryModifications

fun InventoryModifications(rewardGrants: List<RewardGrant> = listOf(), instancedItemServerGrants: List<InstancedItemServerGrant> = listOf(), stackableItemGrants: List<StackableItemGrant> = listOf(), serverInstancedItemUpdates: List<ServerInstancedItemUpdate> = listOf(), instancedItemsToDestroy: List<<ERROR CLASS>> = listOf())