Reworked script function attribute, added initial math library
This commit is contained in:
@@ -19,6 +19,15 @@ namespace Upsilon.BaseTypes.ScriptFunction
|
||||
_passScopeReference = passScopeReference;
|
||||
|
||||
ReturnType = _method.ReturnType;
|
||||
|
||||
if (method.GetMethods().First().Attribute != null)
|
||||
{
|
||||
var attr = method.GetMethods().First().Attribute;
|
||||
_directTypeManipulation = attr.DirectScriptManipulation;
|
||||
_passScriptReference = attr.PassScriptReference;
|
||||
_passScopeReference = attr.PassScopeReference;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private readonly UserDataMethod _method;
|
||||
|
||||
Reference in New Issue
Block a user