proletariatgames / unreal.hx

Unreal.hx: Haxe Integration for Unreal
MIT License
424 stars 43 forks source link

Allow a way to override virtual struct functions from Unreal.hx #103

Open waneck opened 6 years ago

waneck commented 6 years ago

There are a few standing issues with that - mostly what do we do when the copy constructor is called. We can however avoid the issue if we keep all data inside the struct, and only call what could be a static function from Unreal.hx (which the abstract implementation already gives us for free). This way we can allow people to override their own structs, and also extend any kind of struct - not only USTRUCTs