Parameter names in the registration declaration of a function

Started by
2 comments, last by GuyWithBeard 9 months, 2 weeks ago

Hi!

I just wanted to check if it is okay to include parameter names in AngelScript function registration declarations. So basically the string passed to RegisterObjectMethod() to specify how an object is supposed to look like to the script. In the past, I have always registered them like “void f(int)” but I was wondering if it is supported to use “void f(int someInteger)” instead. I tried googling this but couldn't find any info on it, nor any examples actually doing it, in the docs.

Based on a quick test it seems to work, but I wanted to verify before using it in production. The reason I want to do this is that I want to generate autocomplete information and it would be nice to be able to use the same string for that as well.

Thanks!

Advertisement

Yes, that is supported.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Excellent, thank you!

This topic is closed to new replies.

Advertisement