Deleted Networking folder.

Deleted ParseProperty Attribute.  A different approach will be used for dynamic Type saving.
Removed BaseObject.NewSave().  The re-write on save code will be done at a later date.
This commit is contained in:
Scionwest_cp 2011-09-27 18:47:02 -07:00
parent 373b8b66b8
commit c432edbef9
5 changed files with 1 additions and 65 deletions

View file

@ -178,43 +178,6 @@ namespace MudEngine.GameObjects
{
}
public virtual void NewSave()
{
ScriptObject obj = new ScriptObject(this);
PropertyInfo[] prop = this.GetType().GetProperties();
string path = this.SavePath;
if (String.IsNullOrEmpty(path))
return;
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
string filename = Path.Combine(path, Filename);
if (File.Exists(filename))
File.Delete(filename);
foreach (var p in prop)
{
object[] attributes = p.GetCustomAttributes(typeof(MudEngine.Attributes.ParseProperty), false);
foreach (Attribute a in attributes)
{
if (a.GetType().Name == "ParseProperty")
{
ParseProperty(p);
}
}
FileManager.WriteLine(filename, obj.GetProperty(p.Name).ToString(), p.Name);
}
}
private void ParseProperty(PropertyInfo propety)
{
}
public virtual void Save()
{
string path = this.SavePath;