Advertisement

If the static functions have the same name, how to register them respective ?

Started by March 05, 2008 03:15 AM
1 comment, last by zopenge 16 years, 7 months ago
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);

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

Advertisement
Thanks :)~

This topic is closed to new replies.

Advertisement