SaveToSlot - Optional SaveGameData param?
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
SaveToSlot - Optional SaveGameData param?
This is more of a feature request, but would you be willing to add a SaveGameData optional parameter to the SaveToSlot/SaveToSlotImmediate methods in SaveSystem? It's helpful if you need to save specific game data. We do it to create a new game and save immediately for our test harness.
Re: SaveToSlot - Optional SaveGameData param?
Hi,
What about just directly calling SaveSystem.storer.StoreSavedGameData(slotNumber, savedGameData)?
What about just directly calling SaveSystem.storer.StoreSavedGameData(slotNumber, savedGameData)?
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
Re: SaveToSlot - Optional SaveGameData param?
Ahh gotcha, I think that'll work. I'll just have to call these too:
But I guess that's no biggie. Thanks!
Code: Select all
saveStarted();
PlayerPrefs.SetInt(LastSavedGameSlotPlayerPrefsKey, slotNumber);
storer.StoreSavedGameData(slotNumber, saveData);
saveEnded();
But I guess that's no biggie. Thanks!
Re: SaveToSlot - Optional SaveGameData param?
You're welcome!