Added new ParseProperty Attribute that must be used on any Type Property that will need to be saved during runtime.
23 lines
No EOL
444 B
C#
23 lines
No EOL
444 B
C#
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;
|
|
}
|
|
}
|
|
|
|
} |