Support ScriptType as parameter

This commit is contained in:
Deukhoofd 2018-11-30 16:51:18 +01:00
parent 2a0cce9bac
commit 3867ae77ea
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 3 additions and 0 deletions

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