//
// EditorUI::selectObject from 0x10002e780 to 0x10002e84f (207 bytes)
//
// 7 xrefs:
// > EditorUI::clickOnPosition @ 0x10002dbc8
// > EditorUI::findAndSelectObject @ 0x100033426
// > EditorUI::onCreateObject @ 0x1000350a6
// > EditorUI::onCreateObject @ 0x1000351c3
// > EditorUI::pasteObjects @ 0x10003b976
// > EditorUI::selectObjects @ 0x10003c545
// > EditorUI::ccTouchEnded @ 0x10005004f
//
// 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::selectObject(EditorUI *a1, GameObject *a2, bool a3)
{
int m_linkedGroup; // esi
cocos2d::CCArray *StickyGroup; // rax
cocos2d::CCArray *v6; // rax
if ( a3 || EditorUI::canSelectObject(a1, a2) )
{
if ( a1->m_stickyControlsEnabled
&& !a1->m_linkControlsDisabled
&& (m_linkedGroup = a2->m_linkedGroup, m_linkedGroup > 0)
&& (StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, m_linkedGroup)) != nullptr
&& (unsigned int)sub_100720070(StickyGroup) >= 2 )
{
EditorUI::deselectAll(a1);
v6 = (cocos2d::CCArray *)sub_10071FA80(a2);
EditorUI::selectObjects(a1, v6, 0);
}
else
{
a1->m_snapSelected = 1;
EditorUI::deselectAll(a1);
a1->m_selectedObject = a2;
((void (__fastcall *)(GameObject *, __int64))a2->selectObject)(a2, 65280);
LODWORD(a1->m_selectedObject->m_unk460) = a1->m_cycledObjectIndex;
a1->m_canActivateControls = 1;
EditorUI::checkLiveColorSelect(a1);
}
}
}