//
// GameLevelManager::storeDailyLevelState from 0x3c4100 to 0x3c416a (106 bytes)
//
// 1 xrefs:
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x3c4286
//
// 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 GameLevelManager::storeDailyLevelState(GameLevelManager *a1, int a2, int a3, GJTimedLevelType a4)
{
double v4; // d0
if ( a4 == 1 )
{
sub_3BE5E8((int)a1, *(float *)&a2, *(float *)&a3, 1);
a1->m_weeklyID = a2;
a1->m_weeklyTimeLeft = (int)(v4 + (double)a3);
}
else if ( a4 )
{
if ( a4 == Event )
{
sub_3BE5E8((int)a1, *(float *)&a2, *(float *)&a3, 2);
a1->m_eventID = a2;
a1->m_eventTimeLeft = (int)(v4 + (double)a3);
}
}
else
{
sub_3BE5E8((int)a1, *(float *)&a2, *(float *)&a3, 0);
a1->m_dailyID = a2;
a1->m_dailyTimeLeft = (int)(v4 + (double)a3);
}
}