I meant to type uint. Sorry.
asEngine->RegisterObjectType("ObjectInstance", sizeof(ObjectInstance), asOBJ_CLASS); asEngine->RegisterGlobalFunction("ObjectInstance *CreateObjectInstance(ObjectType *type)",asFUNCTION(::CreateObjectInstance),asCALL_CDECL); asEngine->RegisterGlobalFunction("void ReleaseObjectInstance(ObjectInstance *)",asFUNCTION(::ReleaseObjectInstance),asCALL_CDECL); asEngine->RegisterObjectMethod("ObjectInstance","GfxTexture *GetTexture()",asMETHOD(ObjectInstance, GetTexture), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetTexture(GfxTexture *)",asMETHOD(ObjectInstance, SetTexture), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","GfxMesh *GetMesh()",asMETHOD(ObjectInstance, GetMesh), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetMesh(GfxMesh *)",asMETHOD(ObjectInstance, SetMesh), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","bool ComesBefore(ObjectInstance *)",asMETHOD(ObjectInstance, ComesBefore), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","ObjectType *GetType()",asMETHOD(ObjectInstance, GetType), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetPosition(float,float)",asMETHOD(ObjectInstance, SetPosition), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void GetPosition(float&,float&)",asMETHOD(ObjectInstance, GetPosition), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetVelocity(float,float)",asMETHOD(ObjectInstance, SetVelocity), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetAngle(float)",asMETHOD(ObjectInstance, SetAngle), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetAngularVelocity(float)",asMETHOD(ObjectInstance, SetAngularVelocity), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void AssignPhysics(ObjectPhysicsDescription &opd)",asMETHOD(ObjectInstance, AssignPhysics),asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetName(string &)",asMETHOD(ObjectInstance, SetName), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetStack(int pos,float v)",asMETHOD(ObjectInstance, SetStack), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","float GetStack(int pos)",asMETHOD(ObjectInstance, GetStack), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","void SetImmaterial(bool state)",asMETHOD(ObjectInstance, SetImmaterial), asCALL_THISCALL); asEngine->RegisterObjectMethod("ObjectInstance","bool GetImmaterial()",asMETHOD(ObjectInstance, GetImmaterial), asCALL_THISCALL);