예제 #1
0
    public static void SaveFile(Save save, int slot)
    {
        save.BeforeSerialize();

        using (FileStream fileStream = File.Open(GetSavePath(slot), FileMode.OpenOrCreate))
        {
            binaryFormatter.Serialize(fileStream, save);
        }
    }