You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on the save system, adding unit tests and such, and I've been thinking... Perhaps using StirngPairs to represent various types of save data is too limiting. Devs may want to attach special metadata to the save contents, which can do things like help fix glitches or import save data from one game into another for goodies.
I am thinking of going instead with a flexible interface that allows devs a lot more freedom than a key-value pair of strings.
What do you guys think?
The text was updated successfully, but these errors were encountered:
I think key value pairs of some kind will be the most flexible for developers who aren't familiar with programming and should work with Fungus's workflow. I wouldn't reserve it for strings though. It's a little outdated but I would look at this PlayerPrefs replacement for a reference of how to handle it. You'll have to make separate arrays for each type, but that will allow the same control users want without having to cast/revalidate data too much.
The only real other option is to use a binary class to store information and encode it into a file, but that requires some code writing by users since they'll have to add all of the data they want to save to the saving class.
I think key value pairs of some kind will be the most flexible for developers who aren't familiar with programming and should work with Fungus's workflow.
How are devs supposed to save their own custom types without programming, though? I thought it was a given that when it comes to encoding save data that isn't supported by the system right out of the box, users will need their own custom scripts.
I've been working on the save system, adding unit tests and such, and I've been thinking... Perhaps using StirngPairs to represent various types of save data is too limiting. Devs may want to attach special metadata to the save contents, which can do things like help fix glitches or import save data from one game into another for goodies.
I am thinking of going instead with a flexible interface that allows devs a lot more freedom than a key-value pair of strings.
What do you guys think?
The text was updated successfully, but these errors were encountered: