Store different structs in a list?
I have a world that have different types of items, each of these items have data and each type of item has his own struct, i am trying to loop through all the items in a world, but i dont understand how can i store different types of struct in a list.
like i cant add door struct in a window struct list, and if i make
like i cant add door struct in a window struct list, and if i make
List<object> I would defeat the whole point of using struct to maintain efficiency as this would be stored on the heap