Does someone know how to save in a strategy game?

I know “Savegame” but is it really the best solution to save hundreds of variables or is there a cleaner way?

You could make a structure and have all your variables inside it and in your class create one variable as the structure and save that variable and inside it will contain all your variables so it is easier and cleaner.

So you can have 10+ variables in the structure but you only need to save one variable which makes it easier.