//
// SetupSmartBlockLayer::determineStartValues from 0x10006fbe0 to 0x10006fca0 (192 bytes)
//
// 1 xrefs:
// > SetupSmartBlockLayer::init @ 0x10006f178
//
// 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 SetupSmartBlockLayer::determineStartValues(SetupSmartBlockLayer *a1)
{
GJSmartTemplate *m_smartTemplate; // x8
GameManager *v3; // x0
GameManager *v4; // x0
SmartGameObject *m_gameObject; // x8
__int64 v6; // x20
m_smartTemplate = GameLevelManager::sharedState()->m_smartTemplate;
if ( m_smartTemplate )
{
a1->m_allowRotation = m_smartTemplate->m_allowRotation;
*(_WORD *)&a1->m_allowFlipX = *(_WORD *)&m_smartTemplate->m_allowFlipX;
a1->m_ignoreCorners = m_smartTemplate->m_ignoreCorners;
}
v3 = GameManager::sharedState();
a1->m_useNearby = GameManager::getGameVariable(v3, "0131");
v4 = GameManager::sharedState();
a1->m_dontDelete = GameManager::getGameVariable(v4, "0132");
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
a1->m_referenceOnly = m_gameObject->m_referenceOnly;
}
else
{
a1->m_referenceOnly = 1;
if ( (unsigned int)sub_10024A36C(a1->m_gameObjects) )
{
v6 = 0;
do
{
if ( (*(_BYTE *)(sub_10024A388(a1->m_gameObjects, v6) + 1347) & 1) == 0 )
a1->m_referenceOnly = 0;
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}
}