🎉 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!
If the static functions have the same name, how to register them respective ?
class A
{
static void Do( );
};
class B
{
static void Do( );
};
How to register Do() function of A and B ?
thnaks !
You need to give the different names in AngelScript, e.g.
engine->RegisterGlobalFunction("void A_Do()", asFUNCTION(A::Do), asCALL_CDECL);
engine->RegisterGlobalFunction("void B_Do()", asFUNCTION(B::Do), asCALL_CDECL);
engine->RegisterGlobalFunction("void A_Do()", asFUNCTION(A::Do), asCALL_CDECL);
engine->RegisterGlobalFunction("void B_Do()", asFUNCTION(B::Do), asCALL_CDECL);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement