Page 1 of 1
SaveToSlot - Optional SaveGameData param?
Posted: Tue Feb 08, 2022 5:26 pm
by VoodooDetective
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?
Posted: Tue Feb 08, 2022 8:20 pm
by Tony Li
Hi,
What about just directly calling SaveSystem.storer.StoreSavedGameData(slotNumber, savedGameData)?
Re: SaveToSlot - Optional SaveGameData param?
Posted: Wed Feb 09, 2022 1:34 pm
by VoodooDetective
Ahh gotcha, I think that'll work. I'll just have to call these too:
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?
Posted: Wed Feb 09, 2022 1:52 pm
by Tony Li
You're welcome!