As I started my code I attempted a few different things. I successfully made a list variable which stored player names, via the console menu I wrote up I can add a character, remove a character, list characters, etc. The problem with lists is, well, you can only have an in-line storage capacity of one field, great for storing a list of names, not so much for a listing of characters with their associated stats. So, I have looked into my options and read about 's in C# and this looks like it might be what I am looking for storing players as keys and their stats as the key values. My problem is that I am not sure if the Dictionary would be best to use OR if a multi-dimensional array would better serve my purpose.
Ideally, when it is all said and done. This local storage will on start-up be initialized with data from either an embedded database OR stand-alone database(as I have since read about file-locking issues with client/server setups and embedded DBs). And, on the defined call within my program to something such as SaveChars(); would sync my local data back up with the DB table. I realize I may be far off on my conceptualization, hopefully not to far but I am just looking for some input on what type of solution you guys would use in this instance in terms of the storage issue and why. Thanks in advance.
FroglegPosted Sep 19, 2012, 4:45 AM
Steffon ScottPosted Sep 21, 2012, 12:04 PM