public void Set( object target, string val )
{
LinearForceAffector affector = target as LinearForceAffector;
// lookup the real enum equivalent to the script value
object enumVal = ScriptEnumAttribute.Lookup( val, typeof( ForceApplication ) );
// if a value was found, assign it
if ( enumVal != null )
{
affector.ForceApplication = ( (ForceApplication)enumVal );
}
else
{
ParseHelper.LogParserError( val, affector.Type, "Invalid enum value" );
;
}
}