//
// GameLevelManager::storeDailyLevelState from 0x100559cc0 to 0x100559dd8 (280 bytes)
//
// 1 xrefs:
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x10052887b
//
// 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 GameLevelManager::storeDailyLevelState(GameLevelManager *a1, int a2, int a3, GJTimedLevelType a4)
{
timeb v5; // [rsp+8h] [rbp-28h] BYREF
switch ( a4 )
{
case 2:
ftime(&v5);
a1->m_eventTimeLeft = (int)((double)a3 + (double)(v5.millitm + 1000 * (v5.time & 0xFFFFF)) / 1000.0);
a1->m_eventID = a2;
break;
case 1:
ftime(&v5);
a1->m_weeklyTimeLeft = (int)((double)a3 + (double)(v5.millitm + 1000 * (v5.time & 0xFFFFF)) / 1000.0);
a1->m_weeklyID = a2;
break;
case 0:
ftime(&v5);
a1->m_dailyTimeLeft = (int)((double)a3 + (double)(v5.millitm + 1000 * (v5.time & 0xFFFFF)) / 1000.0);
a1->m_dailyID = a2;
break;
}
}