//
// GameObjectCopy::resetObject from 0x664c38 to 0x664d10 (216 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::handleAction @ 0x6725a8
// > LevelEditorLayer::handleAction @ 0x6728d8
// > ??> @ 0xbd8a0
//
// 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_vtbl *v2; // x1
a1->m_object->setPosition(a1->m_object, &a1->m_position);
v2 = a1->m_object->__vftable;
if ( a1->m_rotationX == a1->m_rotationY )
{
((void (*)(void))v2->setRotation)();
}
else
{
((void (*)(void))v2->setRotationX)();
a1->m_object->setRotationY(a1->m_object, a1->m_rotationY);
}
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);
}