diff options
Diffstat (limited to 'src/KingSystem/System/ProductReporter.cpp')
| -rw-r--r-- | src/KingSystem/System/ProductReporter.cpp | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/KingSystem/System/ProductReporter.cpp b/src/KingSystem/System/ProductReporter.cpp index 4812734a..194a0b91 100644 --- a/src/KingSystem/System/ProductReporter.cpp +++ b/src/KingSystem/System/ProductReporter.cpp @@ -9,7 +9,7 @@ #include "KingSystem/Camera/CameraMgr.h" #include "KingSystem/Framework/frmFramework.h" #include "KingSystem/Map/mapPlacementMgr.h" -#include "KingSystem/Sound/sndMgr.h" +#include "KingSystem/Sound/sndSound.h" #include "KingSystem/System/PlayReportMgr.h" #include "KingSystem/System/VFR.h" @@ -220,6 +220,31 @@ bool ProductReporter::incrementSceneAndRomWorkTime() { return true; } +void PlayReport::addPlayTimes() { + if (!gdt::Manager::instance()) + return; + + if (!PlayReportMgr::instance()) + return; + + if (!PlayReportMgr::instance()->getReporter()) + return; + + s32 playTime = + PlayReportMgr::instance()->getReporter()->getS32(PlayReportKey::PlayReport_PlayTime); + + s32 allPlayTime = + PlayReportMgr::instance()->getReporter()->getS32(PlayReportKey::PlayReport_AllPlayTime); + + add(sead::SafeString("PlayTime"), u32(playTime)); + add(sead::SafeString("AllPlayTime"), u32(allPlayTime)); +} + +void PlayReport::addPosition(const sead::Vector2f& position) { + add(sead::SafeString("PosX"), position.x); + add(sead::SafeString("PosZ"), position.y); +} + #define PRODUCT_REPORTER_S32_GETTER(NAME, PLAY_REPORT_KEY) \ s32 ProductReporter::NAME() const { \ s32 out = 0; \ |
