I'd like to implement a scripting module for angelscript but I'm having diffulties to implement the executeScriptedEventHandler method in a generic way. My major problem is that I can't really decide on the EventArg what derived type it is. I think I would need this for correctly prepare the parameters for my scripted handler function?
I could leave this to the scripted handler function itself (providing some functions that extract the desired data) but this would mean that I have to add the EventArg ( extensions and basic CEGUI types (string), ...) to the script engine which I'd like not to do

Any hints or ideas how I could go about this problem are welcome.
Thanks
Tom