Add LuaMemberAttribute (#489)
* Registering functions now only register 1 global, fix #480 * Changed `is not null` to `!= null` for backwards compatibility * Use `IsSubclassOf` instead of newer `IsAssignableTo` * Explicit type for anonymous function in unit test, for pre-C#10 compatibility * Only include test on `NETCOREAPP3_1_OR_GREATER`, added comment for test as well * Removed `NETCOREAPP3_1_OR_GREATER` check because it is unnecessary * Add LuaMemberAttribute, allows registered name in Lua to be different from C#, closes #488 * Explicit typing fix * Tests use IEnumerable<T>.Contains to check for existence instead
src/LuaMemberAttribute.cs
0 → 100644
Please register or sign in to comment