//
// EditorUI::shouldDeleteObject from 0x100032800 to 0x1000328ac (172 bytes)
//
// 4 xrefs:
// > EditorUI::onDeleteSelected @ 0x10000c1b9
// > EditorUI::onDeleteSelected @ 0x10000c265
// > EditorUI::onDelete @ 0x10002dddf
// > EditorUI::onDelete @ 0x10002df0a
//
// 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)
{
bool v2; // bl
GameManager *v4; // rax
GameManager *v5; // rax
if ( !a2 || a2->m_objectID == 749 )
return 0;
v4 = GameManager::sharedState();
v2 = 1;
switch ( GameManager::getIntGameVariable(v4, "0005") )
{
case 0:
return v2;
case 1:
v2 = ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 7;
break;
case 2:
if ( ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) )
v2 = ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 25;
break;
case 3:
v5 = GameManager::sharedState();
v2 = a2->m_objectID == GameManager::getIntGameVariable(v5, "0006");
break;
default:
return 0;
}
return v2;
}