Saving items in inventory?

It’s pretty much the same as for any regular inventory:

  • get items’ data from the inventory
  • pack it into structs
  • add structs to arrays
  • push them into the save game
  • save to disk