I'm currently using a Dictionary for my inventory system. Right now I assume the player has one of each type of object:
You'll notice that I use a local variable modifier for rendering. However, the thing I'm having trouble with is setting up rendering in the case one of the objects does not exist. For example, if there are no "Hack" objects in the inventory, the rendering of the two other objects will need to be moved over since the Hack will not be rendered.
How would you render an inventory that accounts for this dynamic?BoardGame.capx