Hey! First of all, I’m not an english native speaker, so I believe something will pass without me noticing
But I want to fully unsterstand what is going on at this moment of the course.
for Capturing the state:
- The SavingSystem will search for all SaveableEntity in the scene - it puts what SaveableEntity “CaptureState” returns on a Dictionary
- The SaveableEntity (when called by the line above) will search for all ISaveable in the Game Object it is attached to - and puts all serializable objects on another Dictionary that will be returned to SavingSystem.
- And these informations will be wrote on the save file by SavingSystem (using an UUID that is a key for each Dictionary that have each ISaveable inside)
for Restoring:
- The SavingSystem will read the save file
- And the opposite way is going to happen (passing the read states as parameters) , up to the point to each class will restore the states with the passed informations.
So, we are putting a Dictionary inside other Dictionary? and each class will know what to do with it?
If it’s correct, I think I would never reach that conclusion to build this system by myself hahahaha that’s a great solution to we reach the single responsability here, I think.
If i’m miss something, please bring me up!
I’m loving the course!