Files
ss/include/d/t/d_t_siren.h
T
2026-05-10 20:05:48 +02:00

53 lines
1.1 KiB
C++

#ifndef D_T_SIREN_H
#define D_T_SIREN_H
#include "common.h"
#include "d/t/d_tg.h"
#include "toBeSorted/timekeeper.h"
class dTgSiren_c : public dTg_c {
public:
dTgSiren_c() {}
virtual ~dTgSiren_c() {}
static bool isOutOfTime() {
if (sInstance == nullptr) {
return false;
}
return sInstance->outOfTime();
}
static s32 getTime() {
if (sInstance == nullptr) {
return -1;
}
return sInstance->mTimekeeper.getTime();
}
static bool hasCollectedAllTears() {
if (sInstance == nullptr) {
return false;
}
return sInstance->_hasCollectedAllTears();
}
static void setLightFruitTime(u16 time) {
if (sInstance == nullptr) {
return;
}
sInstance->mPillarTime = time;
}
private:
bool outOfTime() const;
bool _hasCollectedAllTears();
static dTgSiren_c *sInstance;
/* 0x0FC */ u8 _0x0FC[0x140 - 0x0FC];
/* 0x140 */ u32 mPillarTime;
/* 0x144 */ u8 _0x144[0x2C0 - 0x144];
/* 0x2C0 */ Timekeeper mTimekeeper;
};
#endif