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);
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