Merchant.AvailableStock
Declaration#
public Int32 AvailableStock(GDTKItem item)Parameters#
| Name | Description |
|---|---|
| item | Item to check |
Description#
Get the number of an item available in stock
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target) { int result = target.AvailableStock(InventoryDatabase.instance.items[0]); }
}