Existing SaveSlots?
Posted: Wed Sep 25, 2024 1:41 pm
Hi,
I'm working through the learning curve of the SaveSystem - great work, very easy to handle, thanks!
I was hoping to have an arbitrary number of saveslots and then just display existing saves by iterating from slot 0 to slot n. Then I can allow the player to overwrite, delete or add an existing one.
There doesn't seem to be any obvious way of tracking what slot n might be, though. I feel like I'm missing something obvious. Should I just track the highest slot number in a metadata file? Or iterate through files in the directory and identify what the slot number is on each? If so, do I just have to use FileSystem objects, there's no nice easy wrapper for them in the SaveSystem? Or am I just going about it wrong?
TIA!
I'm working through the learning curve of the SaveSystem - great work, very easy to handle, thanks!
I was hoping to have an arbitrary number of saveslots and then just display existing saves by iterating from slot 0 to slot n. Then I can allow the player to overwrite, delete or add an existing one.
There doesn't seem to be any obvious way of tracking what slot n might be, though. I feel like I'm missing something obvious. Should I just track the highest slot number in a metadata file? Or iterate through files in the directory and identify what the slot number is on each? If so, do I just have to use FileSystem objects, there's no nice easy wrapper for them in the SaveSystem? Or am I just going about it wrong?
TIA!