Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAndreas Jonsson

Posted 04 October 2012 - 05:18 PM

It would be possible to register multiple versions of the SendMessage method that take different numbers of the variable argument type. In a future version of AngelScript I would also like to add support for ..., i.e. variable number of arguments in registered functions, but I'm not sure when I'll get to that.

Currently however, I prefer having a single version of the method that takes a variable handle (CScriptHandle add-on). The handle can then refer to an object holding all the information needed for the message.

If you're interested you can have a look can have a look at my prototype game engine to see how I implemented the SendMessage routine.





I currently don't have any firm plans as to when shared global variables in the modules will be implemented. It will probably not be ready this year though.

#1Andreas Jonsson

Posted 04 October 2012 - 05:14 PM

It would be possible to register multiple versions of the SendMessage method that take different numbers of the variable argument type.

However, personally I prefer having a single version that takes a variable handle (CScriptHandle add-on). The handle can then refer to an object holding all the information needed for the message.

If you're interested you can have a look can have a look at my prototype game engine to see how I implemented the SendMessage routine.

PARTNERS