コード例 #1
0
 private void saveHerosToFolder(string FolderPath)
 {
     if (!System.IO.Directory.Exists(FolderPath))
     {
         System.IO.Directory.CreateDirectory(FolderPath);
     }
     foreach (Hero h in heroes)
     {
         EasyXML.SerializeXML(h, FolderPath + '/' + h.Name + ".xml");
     }
 }
コード例 #2
0
 private void saveDMChestsToFolder(string FolderPath)
 {
     if (!System.IO.Directory.Exists(FolderPath))
     {
         System.IO.Directory.CreateDirectory(FolderPath);
     }
     foreach (Inventory inv in lista)
     {
         EasyXML.SerializeXML(inv, FolderPath + '/' + inv.Name + ".xml");
     }
 }