ItemContainer.ItemTotalCount
Declaration#
public virtual Int32 ItemTotalCount(string itemId)Parameters#
| Name | Description |
|---|---|
| itemId | Id of the item |
Description#
Get the total count of an item across all stacks, conditions, etc
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(ItemContainer target, string other) { int result = target.ItemTotalCount(other); }}Declaration#
public virtual Int32 ItemTotalCount(string itemId, float minCondition, Int32 minRarity)Parameters#
| Name | Description |
|---|---|
| itemId | Id of the item |
| minCondition | Minimum condition of the item |
| minRarity | Minimum rarity of the item |
Description#
Get the total count of an item across all stacks
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(ItemContainer target) { int result = target.ItemTotalCount(InventoryDatabase.instance.items[0].info.id, 0, 0); }
}