I think the best way to make this work is to have a single, global object that stores all of the data.
Discription
The problem with having multiple objects is that you can’t easily share information between them. If I want to know if an item has been looted or not, I need access to both the inventory and character objects. This means either making two copies of every piece of data (which seems wasteful), or passing references around everywhere (which seems error-prone).
I’m also concerned about how much memory will be used by each individual object; it’s easy for me as a programmer to just keep adding more fields without thinking about performance, but there are limits on what my computer can handle
https://t.co/TuRXlBsYNP
References
Back to Main