game-common / pragma.inventory / InventoryServiceContent /

InventoryServiceContent #

class InventoryServiceContent

Content data for the inventory service, including item catalogs, crafting, rewards, and grants.

Constructors #

InventoryServiceContent

fun InventoryServiceContent()

Functions #

NameSummary

getItemCatalog

fun getItemCatalog(): InventoryContent.ItemCatalog

Returns an ItemCatalog proto of stackable and instanced entries from this InventoryServiceContent.

getRewardsCatalog

fun getRewardsCatalog(): InventoryRpc.RewardsCatalog

Returns a RewardsCatalog proto of all reward content from this InventoryServiceContent.

init

fun init(contentDataNodeService: ContentDataNodeService, loadContentOnStart: Boolean = false)

Initializes a new InventoryServiceContent for the given ContentDataNodeService.