Action RPG Inventory System

This is helpful, but it only goes back to the “add the number of equipment slots to the number of backpack slots” plan, which appears to be my most straightforward option at this point.

I need to iterate through the entire Inventory Item array so that I can send the item ids (and perhaps some other things such as item quality, condition, and so forth) through a socket to a server which will in turn relay the inventory to MySQL and back again when necessary.

I had presumed that there would be a simple way to determine the number of items in the array without knowing anything about the array itself. I take it that this is not possible?