Const attributes and methods
Hi,
I just wonder, how can we register the const attributes and methods?
Do I need to register them as a global?
Cheers
You can register the const methods as normal object methods, just append const after the parameter list (just like in C++).
The const attributes must be registered as globals though.
engine->RegisterObjectMethod("MyObj", "void func() const", asMETHOD(MyObj,func), asCALL_THISCALL);
The const attributes must be registered as globals though.
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