//
// GameObjectCopy::resetObject from 0x1402e8a40 to 0x1402e8ae2 (162 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::handleAction @ 0x1402d681b
// > LevelEditorLayer::handleAction @ 0x1402d693f
// > ??> @ 0x1406d3800
//
// 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 GameObjectCopy::resetObject(GameObjectCopy *a1)
{
GameObject *m_object; // rcx
a1->m_object->setPosition_0(a1->m_object, &a1->m_position);
m_object = a1->m_object;
if ( a1->m_rotationX == a1->m_rotationY )
{
((void (__fastcall *)(GameObject *))m_object->setRotation)(m_object);
}
else
{
((void (__fastcall *)(GameObject *))m_object->setRotationX)(m_object);
((void (__fastcall *)(GameObject *))a1->m_object->setRotationY)(a1->m_object);
}
a1->m_object->setFlipX(a1->m_object, a1->m_isFlipX);
a1->m_object->setFlipY(a1->m_object, a1->m_isFlipY);
GameObject::updateCustomScaleX(a1->m_object, a1->m_customScaleX);
GameObject::updateCustomScaleY(a1->m_object, a1->m_customScaleY);
a1->m_object->updateStartValues(a1->m_object);
}