//
// EditorUI::shouldDeleteObject from 0x37d12c to 0x37d1a6 (122 bytes)
//
// 4 xrefs:
// > EditorUI::onDelete @ 0x3a4372
// > EditorUI::onDelete @ 0x3a43a8
// > EditorUI::onDeleteSelected @ 0x3a4590
// > EditorUI::onDeleteSelected @ 0x3a45f8
//
// 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 EditorUI::shouldDeleteObject(EditorUI *a1, GameObject *a2)
{
bool result; // r0
GameManager *v4; // r0
bool v5; // zf
GameManager *v6; // r0
if ( !a2 )
return 0;
if ( a2->m_objectID == 749 )
return 0;
v4 = GameManager::sharedState();
switch ( GameManager::getIntGameVariable(v4, "0005") )
{
case 0:
goto LABEL_13;
case 1:
v5 = a2->getType(a2) == Decoration;
goto LABEL_9;
case 2:
if ( a2->getType(a2) )
{
v5 = a2->getType(a2) == Slope;
LABEL_9:
result = v5;
}
else
{
LABEL_13:
result = 1;
}
break;
case 3:
v6 = GameManager::sharedState();
v5 = a2->m_objectID == GameManager::getIntGameVariable(v6, "0006");
goto LABEL_9;
default:
return 0;
}
return result;
}