Storing inventory item positions within items

I am looking to store a pan in my inventory with, for example, several tomato slices in it. How would I do this so I could store it and then take it back out and still be able to move the tomatoes around?

I would just make the pan itself contain an inventory. What’s the best method of doing that is up to how you’re designing your inventory.

My own game, I have inventory containers which are held by an index in a master inventory container list which has the info on their contents. Anything that has need of being an inventory container just has an index reference to that master list.

1 Like