//
// GameStatsManager::encodeDataTo from 0x1401f21a0 to 0x1401f2491 (753 bytes)
//
// 2 xrefs:
// > GameManager::encodeDataTo @ 0x14018943f
// > ??> @ 0x1406cc6d8
//
// 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 GameStatsManager::encodeDataTo(GameStatsManager *a1, DS_Dictionary *a2)
{
GameStatsManager::preSaveGameStats(a1);
DS_Dictionary::setDictForKey(a2, "GS_value", a1->m_playerStats);
DS_Dictionary::setDictForKey(a2, "GS_completed", a1->m_completedLevels);
DS_Dictionary::setDictForKey(a2, "GS_3", a1->m_verifiedUserCoins);
DS_Dictionary::setDictForKey(a2, "GS_4", a1->m_pendingUserCoins);
DS_Dictionary::setDictForKey(a2, "GS_5", a1->m_completedMappacks);
DS_Dictionary::setDictForKey(a2, "GS_6", a1->m_purchasedItems);
DS_Dictionary::setDictForKey(a2, "GS_7", a1->m_onlineCurrencyScores);
DS_Dictionary::setDictForKey(a2, "GS_23", a1->m_gauntletCurrencyScores);
DS_Dictionary::setDictForKey(a2, "GS_8", a1->m_unusedCurrencyAwardDict);
DS_Dictionary::setDictForKey(a2, "GS_9", a1->m_onlineStars);
DS_Dictionary::setDictForKey(a2, "GS_10", a1->m_mainCurrencyScores);
DS_Dictionary::setDictForKey(a2, "GS_16", a1->m_timelyCurrencyScores);
DS_Dictionary::setDictForKey(a2, "GS_17", a1->m_timelyStars);
DS_Dictionary::setDictForKey(a2, "GS_18", a1->m_gauntletDiamondScores);
DS_Dictionary::setDictForKey(a2, "GS_24", a1->m_timelyDiamondScores);
DS_Dictionary::setDictForKey(a2, "GS_11", a1->m_dailyChests);
DS_Dictionary::setDictForKey(a2, "GS_22", a1->m_worldAdvertChests);
DS_Dictionary::setDictForKey(a2, "GS_25", a1->m_weeklyChest);
DS_Dictionary::setDictForKey(a2, "GS_31", a1->m_eventChest);
DS_Dictionary::setDictForKey(a2, "GS_12", a1->m_activeChallenges);
DS_Dictionary::setDictForKey(a2, "GS_15", a1->m_upcomingChallenges);
DS_Dictionary::setDictForKey(a2, "GS_14", a1->m_challengeDiamonds);
DS_Dictionary::setDictForKey(a2, "GS_27", a1->m_completedLists);
DS_Dictionary::setDictForKey(a2, "GS_19", a1->m_treasureRoomChests);
DS_Dictionary::setDictForKey(a2, "GS_30", a1->m_wraithChests);
DS_Dictionary::setIntegerForKey(a2, "GS_20", a1->m_bonusKey.random - a1->m_bonusKey.seed);
DS_Dictionary::setDictForKey(a2, "GS_21", a1->m_miscChests);
DS_Dictionary::setDictForKey(a2, "GS_28", a1->m_enabledItems);
DS_Dictionary::setDictForKey(a2, "GS_32", a1->m_unlockedGauntlets);
DS_Dictionary::setIntegerForKey(a2, "GS_26", a1->m_activePath);
DS_Dictionary::setBoolForKey(a2, "GS_29", a1->m_pathBugFixed);
}