I need advice for save game structure
I'm currently trying to implement a save system for my game. I've followed this tutorial to set up a binary serialisation save. I've managed to adapt it to save a fair amount of what I need (player resources, in game time etc.) but I'm a bit stumped on how to work my mission system into it.
I currently have a number of map elements (towns etc.) that each have 3 child game objects representing the missions available at the location. Each mission object has a C# script attached containing all of the mission's variables (difficulty, type, rewards etc.)
Now I know I could write into my save game data class a variable for each mission for each location (something along the lines of loc1Mission1GoldRewards, loc5Mission2DifficultyRating...) and have a code to set each of those variables but that's going to take an age and a half to implement and is going to make expanding the map in the future incredibly difficult. What I want to know if there's an easier way of doing this though, possibly using a for loop or similar?
Any advice would be much appreciated.
Your answer
Follow this Question
Related Questions
cross platform testing reliability within editor 0 Answers
Most useful skills? 0 Answers
Problem with adding a obstacle to "Roll a Ball" tutorial 2 Answers
Does anyone understand why I keep getting "ArgumentOutOfRangeException" from my code? 0 Answers
Instantiated GameObject is Invisible on Android -- But is Visible in Inspector (Should be Visible) 1 Answer