I’ve spent a while and figured that I think I’m overcomplicating my save system massively. It’s menu based, And essentially is “one level” for its life. It won’t need instances and a lot of flash.
It just needs to save and overwrite on a back button.
I’ve got it to work well and functions exactly as needed. I guess I was trying to put a nail in with a sledge hammer.
So I’m back to my original issue of nesting maps/structs.
I have 15 separate data tables feeding 15 maps in structs.
(I tried putting them into arrays etc but Just couldnt seem to cut it down. This is as small As I could get it)
This creates all the data and puts it into a place You can adjust and save on runtime.
This is run only once when the save is created.
Afterwards you’ll use the created maps during the save’s life.
Now the hard bit
Esentially Its a bit of a brain teaser and I just cant see the answer.
As you progress through the menu, you pick up prefixes. when you reach the end you get the map/struct. Related to the prefixes collected.
And then searching for it looks something like this.
This is how Im currently nesting and its a bit…well not good. So I think I just need help understanding how to be organised with my nesting.