Name | Parameters | Return value | Notes |
() (constructor) |
|
cItems |
Creates a new cItems object |
Add |
ItemType, ItemCount, ItemDamage |
|
Adds a new item to the end of the collection |
Add |
cItem |
|
Adds a new item to the end of the collection |
Clear |
|
|
Removes all items from the collection |
Contains |
cItem |
bool |
Returns true if the collection contains an item that is fully equivalent to the parameter |
ContainsType |
cItem |
bool |
Returns true if the collection contains an item that is the same type as the parameter |
Delete |
Index |
|
Deletes item at the specified index |
Get |
Index |
cItem |
Returns the item at the specified index |
Set |
Index, ItemType, ItemCount, ItemDamage |
|
Sets the item at the specified index to the specified item |
Set |
Index, cItem |
|
Sets the item at the specified index to the specified item |
Size |
|
number |
Returns the number of items in the collection |