Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.ContainerItem Class Reference

Public Member Functions

 ContainerItem (int _linkedID, ContainerItem[] otherItems)
 The default Constructor. More...
 
void ShowGUI (InventoryManager inventoryManager)
 

Properties

int ItemID [get, set]
 
int Count [get, set]
 
InvItem InvItem [get]
 

Detailed Description

A data container for an inventory item stored within a Container.

Constructor & Destructor Documentation

◆ ContainerItem()

AC.ContainerItem.ContainerItem ( int  _linkedID,
ContainerItem[]  otherItems 
)

The default Constructor.

Parameters
_linkedIDThe ID number of the associated inventory item (InvItem) being stored
otherItemsAn array of existing items, so that a unique ID can be generated

Property Documentation

◆ Count

int AC.ContainerItem.Count
getset

How many instances of the item are being stored, if the InvItem's canCarryMultiple = True

◆ ItemID

int AC.ContainerItem.ItemID
getset

The ID number of the associated inventory item (InvItem) being stored