SaveToSlot - Optional SaveGameData param?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

SaveToSlot - Optional SaveGameData param?

Post 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.
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: SaveToSlot - Optional SaveGameData param?

Post by Tony Li »

Hi,

What about just directly calling SaveSystem.storer.StoreSavedGameData(slotNumber, savedGameData)?
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: SaveToSlot - Optional SaveGameData param?

Post 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!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: SaveToSlot - Optional SaveGameData param?

Post by Tony Li »

You're welcome!
Post Reply