Haxe-UnrealEngine5
Haxe-UnrealEngine5 copied to clipboard
Automatically attach @:ueExport to all class methods that override "virtual" functions from UE externs
- [ ] Mark specific functions with metadata to register as "virtual" in ue externs (are any UFUNCTIONS virtual? maybe provide option to disable this for "pure" externs)
- [x] Add the feature to the
UEMetadata.hxfile
Added feature so export occurs based on whether the override comes from an extern class. Haxe should be able to do all the type checking to ensure it matches the super class and all. Not sure how important it is to only mark virtual, can only imagine overriding a non-virtual class would be very rare, so maybe not worth the effort. Not to mention not sure how to check for virtuals atm since it not in UFunction or EFunctionFlags??? So guess I'll see.