extends in webinterop #747
Labels
javascript api
Any issues related to our API interaction with the javascript engine
javascript
Any issues related to JavaScript
We need some system, so we can use some kind of
extends
in the scripting part.Internally, this will just be a field that holds the struct we want to extend from. For example, if we have a
UIEvent
struct that we pass to js/Lua we will have a fieldevent
orparent
with aEvent
. When creating the bindings, theEvent
'simplement
function will be executed before theUIEvent
s, which leads to the fields on the Object being correctly instantiated for all struct/classes we that we inherit from.However, there needs to be a slightly different function, so we can also modify the Object's prototype accordingly.
The text was updated successfully, but these errors were encountered: