//
// GameObject::getObjectDirection from 0x140299560 to 0x1402995dc (124 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x1403faa43
// > LevelEditorLayer::updateGameObjects @ 0x1403faa50
// > LevelTools::sortChannelOrderObjects @ 0x140468290
// > ??> @ 0x14091d6fc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:29:11 +0000
//
__int64 __fastcall GameObject::getObjectDirection(__int64 a1)
{
__int64 result; // rax
GameObject::determineSlopeDirection(a1);
switch ( *(_DWORD *)(a1 + 1092) )
{
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;
}