Ejemplo n.º 1
0
 /// <summary>
 /// Place all your resources in DumpInventory/bin/debug/myresourcefolder before running.
 /// Change folder or language if you wish to.
 /// Those changes HAVE TO BE DONE BEFORE INSTANTIATING FFXIVLIB
 /// </summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     // Default folder is Resources, you may override it here
     Constants.ResourceParser.RESOURCES_FOLDER = "myresourcefolder";
     // ja, fr, de or en. Defaults to en if not set
     Constants.ResourceParser.RESOURCES_LANGUAGE = "en";
     FFXIVLIB instance = new FFXIVLIB();
     // Just timing how long it takes
     Stopwatch objSw = new Stopwatch();
     objSw.Start();
     foreach (Item item in instance.GetSelfInventory())
         {
             Console.WriteLine("{0} x{1}", ResourceParser.GetItemName(item), item.Amount);
         }
     objSw.Stop();
     // You can check the stopwatch here and note the time.
     Console.ReadLine();
     objSw.Reset();
     objSw.Start();
     // In cache values
     foreach (Item item in instance.GetSelfInventory())
     {
         Console.WriteLine("{0} x{1}", ResourceParser.GetItemName(item), item.Amount);
     }
     objSw.Stop();
     // You can check the stopwatch value here and compare. Profit
     Console.ReadLine();
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     FFXIVLIB instance = new FFXIVLIB();
     // ReSharper disable once NotAccessedVariable
     List<Inventory.ITEM> ic = instance.GetSelfInventory();
     // ReSharper disable RedundantAssignment
     ic = instance.GetArmoryChest();
     ic = instance.GetCompanyInventory();
     ic = instance.GetRetainerInventory();
     ic = instance.GetCurrentEquipment();
     // ReSharper restore RedundantAssignment
 }