Original Post
Hi Witchlord, first thing: respect for writing and maintaining AngelScript, as well as releasing it as open source and providing free support to developers. I've been able to integrate it with my upcoming game in relatively short time - which is nice. Overall the AngelScript design is pretty good, allows for quite some flexibility when it comes to working with the lib. So far there's only one thing that I've been banging my head against, and it is inability to RegisterGlobalFunction() with method to some class. Most of my interesting behaviours are contained within classess, which makes it harder to expose them to scripts, as I have to create proxy function, define global variable, initialize it, and lastly call variable->behaviour() from within proxy function. You can't call RegisterGlobalFunction() with asMETHOD since who's going to provide 'this' then? Would it be possible to extend it with a object parameter, just like SetMessageHandler, which supports functions and methods? Am I missing something here? ... Nevermind, while writing this post I figured how to workaround it rather nicely. Just register some kind of 'Game' class which will be the provider of 'global services', register said services as its methods, then instantiate it and register as a global property. Not ideal (ie. what when multiple classess contain needed behaviours - proxy classes?) but definitely workable. Pheew. Leaving the topic for others to learn on my example.