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

Public Member Functions

 ContainerItem (int _linkedID, int[] idArray)
 The default Constructor. More...
 
 ContainerItem (int _linkedID, int _count, int[] idArray)
 A Constructor. More...
 
 ContainerItem (int _linkedID, int _count, int _id)
 A Constructor. More...
 
InvItem GetLinkedInventoryItem ()
 Gets the associated Inventory Item More...
 

Public Attributes

int linkedID
 
int count
 
int id
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ContainerItem() [1/3]

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

The default Constructor.

Parameters
_linkedIDThe ID number of the associated inventory item (InvItem) being stored
idArrayAn array of already-used ID numbers, so that a unique one can be generated

◆ ContainerItem() [2/3]

AC.ContainerItem.ContainerItem ( int  _linkedID,
int  _count,
int []  idArray 
)

A Constructor.

Parameters
_linkedIDThe ID number of the associated inventory item (InvItem) being stored
_countHow many instances of the item are being stored, if the InvItem's canCarryMultiple = True
idArrayAn array of already-used ID numbers, so that a unique one can be generated

◆ ContainerItem() [3/3]

AC.ContainerItem.ContainerItem ( int  _linkedID,
int  _count,
int  _id 
)

A Constructor.

Parameters
_linkedIDThe ID number of the associated inventory item (InvItem) being stored
_countHow many instances of the item are being stored, if the InvItem's canCarryMultiple = True
_idA unique identifier

Member Function Documentation

◆ GetLinkedInventoryItem()

InvItem AC.ContainerItem.GetLinkedInventoryItem ( )

Gets the associated Inventory Item

Returns
The associated Inventory Item

Member Data Documentation

◆ count

int AC.ContainerItem.count

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

◆ id

int AC.ContainerItem.id

A unique identifier

◆ linkedID

int AC.ContainerItem.linkedID

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