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.
#
FieldsName | Description |
---|---|
Persist | Mark this object as DontDestroyOnLoad |
Design Time Resource | Path to resource with Stats Data used at design time |
Use Same At Runtime | Use the same resource at runtime |
Data Source | Sets where to load the data from |
Bundle Name | Name of the AssetBundle to load from |
Asset Name | Name of the Asset in the AssetBundle to load |
Path | Relative path to asset in Resources |
Load On Awake | Load data on awake |
#
PropertiesName | Description |
---|---|
actionSequences | Gets a list of all Action Sequences in the database |
currencies | Gets a list of all Currencies in the database |
equipSlots | Gets a list of all Equip Slots in the database |
holsterSlots | Gets a list of all Holster Slots in the database |
items | Gets a list of all Items in the database |
itemCategories | Gets a list of all Item Categories in the database |
itemSetBonuses | Gets a list of all Item Set Bonuses in the database |
quickSlots | Gets a list of all Quick Slots in the database |
rarities | Gets a list of all Rarities in the database |
recipeCategories | Gets a list of all Recipe Categories in the database |
recipes | Gets a list of all Recipes in the database |
sockets | Gets a list of all Sockets in the database |
settings | Gets a the settings for the database |
instance | Returns a reference to the current instance |
isLoaded | True if the database has been loaded |
useAdvancedStats | Gets if database is using advanced stats |
#
MethodsName | Description |
---|---|
FormatCurrencyWithSprites | Return a formatted string with sprites |
GetActionSequence | Get an Action Sequence by id |
GetBestCurrencySet | Gets the best combination of currencies for the supplied value |
GetCurrency | Get a Currency by id |
GetEquipSlot | Get an Equip Slot by id |
GetHolsterSlot | Get an Equip Slot by id |
GetItem | Get an Item by id |
GetItemCategory | Get an Item Category by id |
GetItemSetBonus | Get an Item Set Bonus by id |
GetQuickSlot | Get a Quick Slot by id |
GetRecipe | Get a Recipe by id |
GetRecipeCategory | Get a Recipe Category by id |
GetRarity | Get a Rarity by id |
GetSocket | Get a Socket by id |
Load | Load data from source |
SyncRequest | Sync a request to the main GUI thread |
Unload | Unloads the database |