Not much of an update but cleaned up some old code how I handled loading / saving the inventory. From now on, grabbing the user inventory contains both the achievements and items by default loaded from a database which is MySql until I’ve written a generic database handler to can grab data from any supported database (LiteDB and SqLite3).

Updated tester to get inventory items:

To get a user inventory you can call –> Database.MsSql.GetInventory(user);
or only items -> Database.MsSql.GetInventory(user,true,false); / Database.MsSql.GetInventoryItems(user);
or only achievements -> Database.MsSql.GetInventory(user,false,true); / Database.MsSql.GetInventoryAchievements(user);
or nothing (really?) -> Database.MsSql.GetInventory(user,false,false);

Share this: