Saving Dictionary to specific file
Posted: Sun Jun 30, 2019 4:20 am
Hello,
Im saving multiple items to a save file. Most of it has worked easily, however, I'm having an issue saving a dictionary<int,bool> to the file along with the other items. The other examples I've seen so far look as if you need to create a new file and then use sync() to save it. Will this overwrite the old file each time? What is the syntax? Here's what I'm using so far.
the save path is the path including the filename to be created. I had to use this since mobile files have to be created in a specific file path on IOS.
ES3.Save<IDictionary<int,bool>>("levelCompDict", lvlCompleteDict, savePath); --This is the line that's not working
ES3.Save<int>("LivesLeft", numLives, savePath);
ES3.Save<int>("CoinBalance", Points, savePath);
Im saving multiple items to a save file. Most of it has worked easily, however, I'm having an issue saving a dictionary<int,bool> to the file along with the other items. The other examples I've seen so far look as if you need to create a new file and then use sync() to save it. Will this overwrite the old file each time? What is the syntax? Here's what I'm using so far.
the save path is the path including the filename to be created. I had to use this since mobile files have to be created in a specific file path on IOS.
ES3.Save<IDictionary<int,bool>>("levelCompDict", lvlCompleteDict, savePath); --This is the line that's not working
ES3.Save<int>("LivesLeft", numLives, savePath);
ES3.Save<int>("CoinBalance", Points, savePath);