So I want to have some objects on my scene that I want to keep changes after scene reloads, for example chests, when player open one I want to keep information that specific chest is already open and there is no possible to open it again after scene reload. To be clear I understand saving information/loading information to and from json, and I know I can handle it by booleans, and store that information in dic etc. my problem is different.
So for example I put some chests on my scene, my first idea is to give every objects I want to keep track an unique ID: 10001, 10002, 10003 and create one or many json files for every scene that holds track to ID 10001 : true, 10002 : false and after every scene reload in _ready func I can load that information.
But the problem is:
I have to set an unique ID manually to every object I want to keep track to, so I can make mistakes and give a same ID to 2 different objects and it will makes bugs. Other think is I have to manually create json file for every map with ID for every object, so if I will have hundreds of objects it will be waste of time.
Can you help me guys?