Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.ContainerItem Class Reference

Public Member Functions

 ContainerItem (int _linkedID, ContainerItem[] otherItems)
 The default Constructor.
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