MudEngine:

- BaseObject save code re-wrote
 - Added Inventory property to BaseCharacter 
 - BaseCharacter Save() now called when players are being disconnected.
 - Adjusted how objects Filenames are generated.
This commit is contained in:
Scionwest_cp 2010-07-30 15:50:53 -07:00
parent 2152a139b0
commit e822537128
4 changed files with 28 additions and 6 deletions

View file

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
namespace MudEngine.FileSystem
{
@ -33,10 +34,18 @@ namespace MudEngine.FileSystem
/// <param name="o"></param>
public static void Save(string Filename, object o)
{
Type t = o.GetType();
foreach (PropertyInfo info in t.GetProperties())
{
}
/*
if (FileType == OutputFormats.XML)
{
XmlSerialization.Save(Filename, o);
}
*/
}
/// <summary>