- Home /
Too subjective and argumentative
Best practice: Save informations
Hi,
I design a tool for roleplaying games. Right now I was wondering, what the best way is to save informations (A set of "Talents" that is unique to a "world") on a local computer. Later on in the project, I will use a database, but I am not ready with that yet and want to concentrate on other aspects right now.
I know about the PlayerPrefs. I would prefer an xml writer or something along these lines though. I have no problem to create a function, that converts the object to its "data as xml-conform-string" or smth and vice versa. But maybe there is a better way to save it. JSon is an other option I know of, even if I do not know much about it.
C# is the language I use in this projekt.
I just want to know, if the playerPrefs (Shall rarely used during the "game", I read?), the XML-approach, the JSon or another persistant approach is the best for my application.
I would be very interested in your experiances with libraries for that.
(Save changes to the harddrive, not too frequently, relatively fast access - would be the main requirements.)
I just want to change a talent that is created and load it in a rational amount of time, if I need it after a program start again.
Once again - I could make it work - kinda ;-). But I wonder, what the best way would be / is, even though I just need it as an interim solution. ("interim" could be a long while though ;-))
Thanks in approach, I hope for kind and informative answers :-)
X$$anonymous$$L and JSON should be fine; this question is like to produce multiple subjective answers with no 'final answer' possible; I'm going to close it please use the Forums for general design questions. If you have a specific question about an implementation, please ask again.