So I learned how to use TMaps to create an inventory, but it was a much simpler type of inventory.
Basically it was like this:
TMap<FString, int32> Inventory;
TMap<FString, UTexture2D> Icon;
And I combined these TMaps to create a grid like system like so: FString name, int32 quantity, UTexture icon;
However, now I need to store more complex items in my inventory. I need to store variables such as name, cost, texture, mesh, and possibly other stuff. I basically need to put a tmap in a tmap in another tmap, and I don’t think that’s possible.
So, what is the best way to code an inventory system, like let’s say starcraft 2?