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:
parent
2152a139b0
commit
e822537128
4 changed files with 28 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue