Beispiel #1
0
        public static ItemContainerSaveData LoadItems(string path)
        {
            string filePath = baseSavePath + "/" + path + ".dat";

            if (System.IO.File.Exists(filePath))
            {
                return(FileReadWrite.ReadFromBinaryFile <ItemContainerSaveData>(filePath));
            }
            return(null);
        }
Beispiel #2
0
 public static void SaveItems(ItemContainerSaveData items, string path)
 {
     FileReadWrite.WriteToBinaryFile(baseSavePath + "/" + path + ".dat", items);
 }