typedef int32_t (__cdecl *ProtodbPickObject_5)(int32_t screenX, int32_t screenY, int32_t objectStart, int32_t objectEnd, int32_t ignoreCamera);
int32_t dbPickObject(int32_t screenX, int32_t screenY, int32_t objectStart, int32_t objectEnd, int32_t ignoreCamera) {
static ProtodbPickObject_5 Ptr;
int32_t result = 0;
if (!Ptr && !GDKLoadPtr(&Ptr,"DBProBasic3DDebug.dll","?PickScreenObjectEx@@YAHHHHHH@Z"))
return 0;
if (GDKWaitFunction()) {
result = Ptr(screenX, screenY, objectStart, objectEnd, ignoreCamera);
GDKCleanupFunctionCall();
}
return result;
}