I am currently trying to build an signal-slot system for angelscript. It works fine, with one exception: I can't bind slots of objects to it.
How can I save an function-pointer to an method of one specific object?
Shows the error "'printSomething' is not a member of 'Test'".
How do I take an function as an parameter of an C++ function? I couldn't find anything to that in the documentation. I want to rewrite them as C++ class so I can use them to connect the script with the code. (for example, I have an sprite class which should send an signal as soon as the current animation has ended, so that the script can react on it)
My angelscript implementation: http://pastebin.com/KW8FCLxv