• dcronqvist's avatar
    Add LuaMemberAttribute (#489) · 9026d802
    dcronqvist authored
    * 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
    9026d802
LuaMemberAttribute.cs 2.47 KB