Advertisement

Const attributes and methods

Started by November 13, 2008 08:38 PM
0 comments, last by WitchLord 16 years ago
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++).

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