Hello,
I am also searching a way to do these kinds of stuff. For the moment I found that you will need to create a plugin in order to create a new class, deriving from an existing one. I have tried it myself but there were several errors in the compilation of the code
I think there is a way to do this by creating a plugin. Maybe there are some kind of tricks to do…