Closed bsergent closed 5 years ago
Support positional inventories as one implementation of Inventory where items can take up multiple slots. Store an array of item locations and sizes, and then populate a map of all slots and whether they're occupied or not for finding new placements. Look at new projects page of my website for examples. This would also require the ability to rotate items within the inventory.
Going to wait on positional inventories until another day, probably milestone v2.0.0 RPG.
Inventory, abstract. Array of slots, each with null or an Item. Implement the dragging between slots and the rendering for each slot. Leave the positioning of the slots up to child inventories.