Support ScriptType as parameter
This commit is contained in:
parent
2a0cce9bac
commit
3867ae77ea
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue