- Home /
Is it Possible To make inv system
Im making a game with small to little amount of knowledge of java....(i know medium with C++ and Basic) and i need a code to make items or whatever into "Strings" in to variables or somtin to get put into a database....
Answer by Ashkan_gc · Mar 06, 2010 at 08:00 AM
you just need to serialize the list and store it in your database and then read it back and deserialize it. if you want to store items one by one then you need to iterate with foreach loop in your list and read them one by one and store them in a database with your listname and a number as the ID and then read back all data one by one and add them to your list in your game. see the results of this link http://www.google.com/#hl=fa&source=hp&q=serializing+list%3CT%3E+.net&lr=&fp=d0893bb8223c8b16 specially the first one and that one from dotnetperls.com are good tutorials.
Answer by BronPigeix · Aug 26, 2013 at 11:29 AM
If you want to convert like strings it needs to be use with static.