Original Post
Hi, there! I have a problem registering objects in AngelScript. Suppose I have an object Actor that inherit from Entity2D and I don't want to copy all the methods registration from Entity2D in Actor. So, i've made a method in Entity2D like this: static bool RegisterEntity2D(char *className=NULL) { char _className[100]; if (className != NULL) { strcpy_s(_className, 100, className); } else { strcpy_s(_className, 100, "Entity2D"); if (ScriptMgr::RegisterObjectType(_className, sizeof(Entity2D), asOBJ_CLASS) < 0) return false; } if (ScriptMgr::RegisterObjectMethod(_className, "void SetCollisionColor(uint)",asMETHOD(Entity2D, SetCollisionColor),asCALL_THISCALL) < 0) return false; if (ScriptMgr::RegisterObjectMethod(_className, "void SetCollisionRadius(float)",asMETHOD(Entity2D, SetCollisionRadius),asCALL_THISCALL) < 0) return false; return true; } Then, in Actor I've made something like this: bool Actor::RegisterActor(char *className) { char _className[100]; if (className != NULL) { strcpy_s(_className, 100, className); } else { strcpy_s(_className, 100, "Actor"); if (ScriptMgr::RegisterObjectType(_className, sizeof(Actor), asOBJ_CLASS) < 0) return false; } if (!Entity2D::RegisterEntity2D(className)) { return false; } if (ScriptMgr::RegisterObjectProperty(_className, "int _action",offsetof(Actor, _action)) < 0) return false; if (ScriptMgr::RegisterObjectProperty(_className, "int _state",offsetof(Actor, _state)) < 0) return false; return true; } Here all works ok, but when i've tried to access some methods from Entity2D in an Actor object from AngelScript, it says "Actor (10, 13) : ERR : No matching signatures to...". What is going on? Can I do this kind of registration? Thanks in advance! P.S: This is only an example, i've registered so many properties and methods to put them here.