MUDEngine:

* Created a FileSystem class. FileSystem acts as a back end class for saving and loading data. Adding additional file types or data management options such as SQL will not be easier to implement by creating a new class that the FileSystem class can use.
 * XmlSerialization class is no longer public. It's changed to internal and has its information passed to it via the FileSystem class.

Project Manager:
 * Project Manager now uses the FileSystem class for saving and loading data instead of the XmlSerialization class.
This commit is contained in:
Scionwest_cp 2009-11-06 17:45:46 -08:00
parent 6004bd0c58
commit 97274cb4aa
5 changed files with 92 additions and 6 deletions

View file

@ -29,7 +29,7 @@ namespace Project_Manager
//Instance a new realm
MUDEngine.Environment.Realm newRealm = new MUDEngine.Environment.Realm();
//De-serialize the current realm.
newRealm = (MUDEngine.Environment.Realm)MUDEngine.XmlSerialization.Load(realm, newRealm);
newRealm = (MUDEngine.Environment.Realm)MUDEngine.FileSystem.FileSystem.Load(realm, newRealm);
//Add it to the available realms combo box.
comRealms.Items.Add(newRealm.Name);
}
@ -61,7 +61,7 @@ namespace Project_Manager
{
MUDEngine.Environment.Zone newZone = new MUDEngine.Environment.Zone();
//De-serialize the current zone.
newZone = (MUDEngine.Environment.Zone)MUDEngine.XmlSerialization.Load(zone, newZone);
newZone = (MUDEngine.Environment.Zone)MUDEngine.FileSystem.FileSystem.Load(zone, newZone);
//Add it to the available zones list box
lstZones.Items.Add(newZone.Name);
}