//
// PlayLayer::loadActiveSaveObjects from 0x100121518 to 0x1001215a0 (136 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x100121270
//
// 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 PlayLayer::loadActiveSaveObjects(
PlayLayer *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // x8
std::__vector_base::pointer end; // x9
std::__vector_base::pointer v5; // x19
SavedSpecialObjectState *v6; // x20
AnimatedGameObject *m_gameObject; // x0
begin = a2->__begin_;
end = a2->__end_;
while ( begin != end )
{
LOWORD(begin->m_gameObject[1].m_obAnchorPointInPoints.x) = *(_WORD *)&begin->m_activatedByPlayer1;
++begin;
}
v5 = a3->__begin_;
v6 = a3->__end_;
if ( a3->__begin_ != v6 )
{
do
{
m_gameObject = (AnimatedGameObject *)v5->m_gameObject;
if ( v5->m_gameObject->m_classType == Animated )
{
AnimatedGameObject::playAnimation(m_gameObject, v5->m_animationID);
}
else if ( m_gameObject->m_objectID == 1615 )
{
m_gameObject[1].m_bDirty = 1;
}
++v5;
}
while ( v5 != v6 );
}
}