How can I get parameters number from asIScriptGeneric ?
AS Code :
void Test( uint x1, uint x2, uint x3, uint x4 )
{
// Do something
}
C++ Code :
void Test( asIScriptGeneric* gen )
{
// How can I get parameters number from asIScriptGeneric ?
// Because I want to do something different what base on parameters number
// Just like wsprintf( ) function.
switch ( /* gen the par number */ )
{
// Do something ...
}
}
Thanks so much !
There's currently no easy way of doing that. I'll add a method GetArgCount to the asIScriptGeneric interface so you can do what you want.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
If you're interested, you can already download the WIP of the next version. I added the GetArgCount method to the asIScriptGeneric interface already.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement