The Gaming Industry

12
Jul 2020

<div>I'm having trouble passing a pointer to AngelScript</div>

I’m working on a game engine, using AngelScript. I have registered my entity class to AngleScript (there is no constructor on purpose, I don’t want users to be able to declare new entities):

r = engine->RegisterObjectType("Entity", 0, asOBJ_REF); assert(r >= 0);
r = engine->RegisterObjectBehaviour("Entity", asBEHAVE_ADDREF, "void f()", asMETHOD(Entity, AddRef), asCALL_THISCALL); assert(r >= 0);
r = engine->RegisterObjectBehaviour("Entity", asBEHAVE_REL

Powered by WPeMatico

Tags are not defined
Comments are closed.