Hi!
I can declare global class throught binding with c++ code. Can i bind virtual properties? I don't find any clue in documentation about this feature (((
registering virtual properties
Virtual properties are registered with the engine by registering a pair of get and set functions. For example:
Manual entries describing this:
Regards,
Andreas
engine->RegisterGlobalFunction("int get_GlobProp()", asFUNCTION(get_GlobProp), asCALL_CDECL);
engine->RegisterGlobalFunction("void set_GlobProp(int)", asFUNCTION(set_GlobProp), asCALL_CDECL);
engine->RegisterObjectMethod("Obj", "int get_ObjProp()", asMETHOD(Obj, get_ObjProp), asCALL_THISCALL);
engine->RegisterObjectMethod("Obj", "void set_ObjProp(int)", asMETHOD(Obj, set_ObjProp), asCALL_THISCALL);
Manual entries describing this:
Regards,
Andreas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement