🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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.
If you're interested, you can already download the WIP of the next version. I added the GetArgCount method to the asIScriptGeneric interface already.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement