Support ScriptType as parameter

This commit is contained in:
Deukhoofd committed 2018-11-30 16:51:18 +01:00
1 parent 2a0cce9bac
commit 3867ae77ea
1 file changed
+3
+3
View File
@@ -90,6 +90,9 @@ namespace Upsilon.StandardLibraries
return Type.Table | Type.UserData;
if (typeof(ScriptTable).IsAssignableFrom(type))
return Type.Table;
if (type == typeof(ScriptType))
// allows every type
return (Type) 255;
return Type.UserData;
}
}