using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MudDesigner.MudEngine.FileSystem { public static class FileSystem { public enum OutputFormats { XML = 0, } /// /// The filetype that the MUDs files will be saved as /// public static OutputFormats FileType { get; set; } /// /// Saves the object using the specified output format /// /// /// public static void Save(string Filename, object o) { if (FileType == OutputFormats.XML) { XmlSerialization.Save(Filename, o); } } /// /// Loads the object using the specified FileType format /// /// /// /// public static object Load(string Filename, object o) { if (FileType == OutputFormats.XML) { return XmlSerialization.Load(Filename, o); } else return null; } } }