First, I've started Strange for about 3 months, so I'm not a professional yet. Yet I'm loving it. My code has never been so organized, easy to add, remove and change (almost) anything.
There is a scenario that I always face -> WhenI have a List of Models that corresponds to a List of Views.
For example:
1. I have an Inventory full of Items.
2. Each item is represented by a SlotView.
3. When I click the SlotView, I need to know which Item is represented by it.
4. When something occurs with an Item, I need to know which SlotView is represented by it.
5. And I really don't know if my logic is right or if there is a better way to approach this.
So, yeah, I've created the minimum full code possible that I could imagine. Still, it turned out a little big.
These are the links to it:
My questions are embed at the code within comments
Thanks.