//
// EditorUI::onDeleteSelectedType from 0x1003e9170 to 0x1003e91b0 (64 bytes)
//
// 1 xrefs:
// > EditorUI::setupDeleteMenu @ 0x1003c7f24
//
// 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
//
void __fastcall EditorUI::onDeleteSelectedType(EditorUI *a1, cocos2d::CCObject *a2)
{
GameObject *m_selectedObject; // x8
int m_objectID; // w20
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
{
m_objectID = m_selectedObject->m_objectID;
EditorUI::deselectAll(a1);
LevelEditorLayer::removeAllObjectsOfType(a1->m_editorLayer, m_objectID);
EditorUI::updateButtons(a1);
}
}