Added beginning support for Dynamic Type Property Saving. Refer to my blog post for additional information in this: http://scionwest.net/2011/09/saving-type-data-dynamically/
Added new ParseProperty Attribute that must be used on any Type Property that will need to be saved during runtime.
This commit is contained in:
parent
f8620d0f4d
commit
81f2ae91c0
6 changed files with 537 additions and 471 deletions
23
MudEngine/Attributes/ParseProperty.cs
Normal file
23
MudEngine/Attributes/ParseProperty.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
using System.ComponentModel;
|
||||
namespace MudEngine.Attributes
|
||||
{
|
||||
[System.AttributeUsage(System.AttributeTargets.Property)]
|
||||
public class ParseProperty
|
||||
: System.Attribute
|
||||
{
|
||||
Object obj;
|
||||
|
||||
public ParseProperty(Object var)
|
||||
{
|
||||
obj = var;
|
||||
}
|
||||
|
||||
public object GetObject()
|
||||
{
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue