//
// EditorUI::shouldDeleteObject from 0x1003e9a24 to 0x1003e9afc (216 bytes)
//
// 4 xrefs:
// > EditorUI::onDeleteSelected @ 0x1003c7578
// > EditorUI::onDeleteSelected @ 0x1003c7628
// > EditorUI::onDelete @ 0x1003e68e4
// > EditorUI::onDelete @ 0x1003e6924
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall EditorUI::shouldDeleteObject(EditorUI *a1, GameObject *a2)
{
GameManager *v4; // x0
int IntGameVariable; // w0
GameManager *v7; // x0
if ( !a2 )
return 0;
if ( a2->m_objectID == 749 )
return 0;
v4 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v4, "0005");
if ( IntGameVariable <= 1 )
{
if ( IntGameVariable )
{
if ( IntGameVariable != 1 )
return 0;
return ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 7;
}
return 1;
}
if ( IntGameVariable == 2 )
{
if ( !((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) )
return 1;
return ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 25;
}
else
{
if ( IntGameVariable != 3 )
return 0;
v7 = GameManager::sharedState();
return a2->m_objectID == GameManager::getIntGameVariable(v7, "0006");
}
}