I am making a minecraft kind of game. In which I have 100s of objects and their crafting recipe.
Now I want to store them inside the program, ie I cannot load external files. Everything must be inside class for now. In future I might be able to use databases, once the game gets more traction.
All these objects will have addition properties like shootable,purchase cost,etc etc.
Some also have array property like
{ research1: unlocks{ object1:50%, object2:100% }},
{ research2: unlocks{ object1:50% }}.
But all these objects will be constant with an exception of "locked" boolean.
If I do a huge database I'll also have to search data using filters on they keys like we do on sql. Example: "Give me all Researches that are unlocked and that unlocks object1"
What will be the best datastructure to store them? Thanks.