pokeheartgold/include/gf_rtc.h
2022-01-27 08:49:33 -05:00

41 lines
1.1 KiB
C

#ifndef POKEHEARTGOLD_GF_RTC_H
#define POKEHEARTGOLD_GF_RTC_H
typedef enum RTC_TimeOfDay {
RTC_TIMEOFDAY_MORN = 0,
RTC_TIMEOFDAY_DAY,
RTC_TIMEOFDAY_EVE,
RTC_TIMEOFDAY_NITE,
RTC_TIMEOFDAY_LATE,
} TIMEOFDAY;
typedef enum TimeOfDayWildParam {
TIMEOFDAY_WILD_MORN,
TIMEOFDAY_WILD_DAY,
TIMEOFDAY_WILD_NITE,
} TimeOfDayWildParam;
struct GF_RTC_DateTime {
RTCDate date;
RTCTime time;
};
BOOL IsNighttime(void);
void GF_RTC_CopyTime(RTCTime *time);
void GF_RTC_CopyDate(RTCDate *date);
s64 GF_RTC_DateTimeToSec(void);
void GF_RTC_CopyDateTime(RTCDate *date, RTCTime *time);
TIMEOFDAY GF_RTC_GetTimeOfDay(void);
TIMEOFDAY GF_RTC_GetTimeOfDayByHour(s32 hour);
TimeOfDayWildParam GF_RTC_GetTimeOfDayWildParam(void);
TimeOfDayWildParam GF_RTC_GetTimeOfDayWildParamByHour(s32 hour);
void GF_InitRTCWork(void);
void GF_RTC_UpdateOnFrame(void);
s32 GF_RTC_TimeToSec(void);
s32 GF_RTC_GetDayOfYear(const RTCDate * date);
s64 GF_RTC_TimeDelta(s64 first, s64 last);
void sub_020148F4(void);
void sub_02014904(s32 hour, s32 minute);
#endif //POKEHEARTGOLD_GF_RTC_H