Reworked script function attribute, added initial math library

This commit is contained in:
2018-12-07 16:11:52 +01:00
parent 9bd82174f2
commit ac05647d71
15 changed files with 95 additions and 29 deletions

View File

@@ -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;