Skip to main content

Introduction

The Inventory Database component provides a list of all objects that can be used by various Inventories. This way they can be reused and quickly updated by AssetBundles or Json updates.

"Inventory Database V2"

Fields#

NameDescription
PersistMark this object as DontDestroyOnLoad
Design Time ResourcePath to resource with Stats Data used at design time
Use Same At RuntimeUse the same resource at runtime
Data SourceSets where to load the data from
Bundle NameName of the AssetBundle to load from
Asset NameName of the Asset in the AssetBundle to load
PathRelative path to asset in Resources
Load On AwakeLoad data on awake

Properties#

NameDescription
actionSequencesGets a list of all Action Sequences in the database
currenciesGets a list of all Currencies in the database
equipSlotsGets a list of all Equip Slots in the database
holsterSlotsGets a list of all Holster Slots in the database
itemsGets a list of all Items in the database
itemCategoriesGets a list of all Item Categories in the database
itemSetBonusesGets a list of all Item Set Bonuses in the database
quickSlotsGets a list of all Quick Slots in the database
raritiesGets a list of all Rarities in the database
recipeCategoriesGets a list of all Recipe Categories in the database
recipesGets a list of all Recipes in the database
socketsGets a list of all Sockets in the database
settingsGets a the settings for the database
instanceReturns a reference to the current instance
isLoadedTrue if the database has been loaded
useAdvancedStatsGets if database is using advanced stats

Methods#

NameDescription
FormatCurrencyWithSpritesReturn a formatted string with sprites
GetActionSequenceGet an Action Sequence by id
GetBestCurrencySetGets the best combination of currencies for the supplied value
GetCurrencyGet a Currency by id
GetEquipSlotGet an Equip Slot by id
GetHolsterSlotGet an Equip Slot by id
GetItemGet an Item by id
GetItemCategoryGet an Item Category by id
GetItemSetBonusGet an Item Set Bonus by id
GetQuickSlotGet a Quick Slot by id
GetRecipeGet a Recipe by id
GetRecipeCategoryGet a Recipe Category by id
GetRarityGet a Rarity by id
GetSocketGet a Socket by id
LoadLoad data from source
SyncRequestSync a request to the main GUI thread
UnloadUnloads the database