Hi,
Is there a way to register a CPP object with AngelScript and tell it that the object implements an interface.
In the script you would do this :
interface IMyInterface
{
void MyInterfaceFunction();
}
class CMyClass : IMyInterface
{
void MyInterfaceFunction();
}
So how would you do this exact thing in CPP ??
...
pEngine->RegisterInterface("IMyInterface");
pEngine->RegisterInterfaceMethod("IMyInterface", "void MyInterfaceFunction()");
// how do I register this object as an object implementing the interface ???
pEngine->RegisterObjectType("CMyClass", sizeof(CMyClass), asOBJ_CLASS);
...