===== cItems class =====
This class represents a numbered collection (array) of [[API:cItem|cItem]] objects. The array indices start at zero, each consecutive item gets a consecutive index.
This class is used for spawning multiple pickups or for mass manipulating an inventory.
===== Functions =====
^ Function name ^ Parameters ^ Return value ^ Notes ^
| ( ) | | cItems | Creates a new cItems object |
| Add | Index, [[API:cItem|cItem]] | | Adds a new item to the end of the collection |
| Add | Index, ItemType, ItemCount, ItemDamage | | Adds a new item to the end of the collection |
| Clear | | | Removes all items from the collection |
| Delete | Index | | Deletes item at the specified index |
| Get | Index | [[API:cItem|cItem]] | Returns the item at the specified index |
| Set | Index, [[API:cItem|cItem]] | | Sets the item at the specified index to the specified item |
| Set | Index, ItemType, ItemCount, ItemDamage | | Sets the item at the specified index to the specified item |
| Size | | number | Returns the number of items in the collection |
