//
// GameObject::getObjectDirection from 0x14019c520 to 0x14019c59c (124 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x1402dc1ed
// > LevelEditorLayer::updateGameObjects @ 0x1402dc1fa
// > LevelTools::sortChannelOrderObjects @ 0x14032d740
// > ??> @ 0x1406cbd78
//
// 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
//
int GameObject::getObjectDirection(GameObject *a1)
{
int result; // eax
GameObject::determineSlopeDirection(a1);
switch ( a1->m_slopeDirection )
{
case 2:
case 3:
result = 3;
break;
case 4:
case 7:
result = 2;
break;
case 5:
case 6:
result = 1;
break;
default:
result = 4;
break;
}
return result;
}