summaryrefslogtreecommitdiff
path: root/include/m_time.h
diff options
context:
space:
mode:
authorPrakxo <87568477+Prakxo@users.noreply.github.com>2024-05-19 18:40:39 +0200
committerGitHub <noreply@github.com>2024-05-19 09:40:39 -0700
commit448405671db5a0c0ffd5d62c04c333d7e3b4e7fc (patch)
tree4f76e2b1b83c58bec8bdc72af52fb362d4aa499f /include/m_time.h
parent92911830dc9be365989887e1464bf766e471ed96 (diff)
m_time OK (#189)
Diffstat (limited to 'include/m_time.h')
-rw-r--r--include/m_time.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/include/m_time.h b/include/m_time.h
index eb6dc05..f12b565 100644
--- a/include/m_time.h
+++ b/include/m_time.h
@@ -41,7 +41,7 @@ typedef enum mTM_TERM{
/* 16 */ mTM_TERM_16,
/* 17 */ mTM_TERM_17,
- /* 18 */ mTM_TERM_NUM
+ /* 18 */ mTM_TERM_MAX
} mTM_TERM;
#define mTM_RENEW_TIME_NONE 0
@@ -60,17 +60,17 @@ typedef enum mTM_RENEW_TIME{
#define mTM_MINUTES_IN_HOUR 60
-typedef struct mTM_calendar_term_t {
+typedef struct TimeCalendarTerm {
/* 0x00 */ lbRTC_month_t month;
/* 0x01 */ lbRTC_day_t day;
/* 0x02 */ u16 season;
- /* 0x04 */ s16 bgitem_profile;
- /* 0x06 */ s16 bgitem_bank;
-} mTM_calendar_term_t; // size = 0x8
+ /* 0x04 */ s16 bgitemProfile;
+ /* 0x06 */ s16 bgitemBank;
+} TimeCalendarTerm; // size = 0x8
-extern lbRTC_time_c mTM_rtcTime_clear_code;
-extern lbRTC_ymd_t mTM_rtcTime_ymd_clear_code;
-extern lbRTC_time_c mTM_rtcTime_default_code;
+extern const lbRTC_time_c mTM_rtcTime_clear_code;
+extern const lbRTC_ymd_t mTM_rtcTime_ymd_clear_code;
+extern const lbRTC_time_c mTM_rtcTime_default_code;
#define mTM_IsTimeCleared(time) (lbRTC_IsEqualTime((time), &mTM_rtcTime_clear_code, lbRTC_CHECK_ALL) == TRUE)
#define mTM_AreTimesEqual(t0, t1) (lbRTC_IsEqualTime(t0, t1, lbRTC_CHECK_ALL))
@@ -78,4 +78,17 @@ extern lbRTC_time_c mTM_rtcTime_default_code;
#define mTM_CheckCmpYMDEqual(ymd0, ymd1) ((ymd0)->year == (ymd1)->year && (ymd0)->month == (ymd1)->month && (ymd0)->day == (ymd1)->day)
#define mTM_CheckCmpYMDClear(ymd0) ((ymd0)->year == mTM_rtcTime_ymd_clear_code.year || (ymd0)->month == mTM_rtcTime_ymd_clear_code.month || (ymd0)->day == mTM_rtcTime_ymd_clear_code.day)
+s32 mTM_get_termIdx(void);
+void mTM_set_season(void);
+void mTM_clear_renew_is(void);
+s32 mTM_check_renew_time(u8 flag);
+void mTM_off_renew_time(u8 flag);
+void mTM_set_renew_is(void);
+void mTM_set_renew_time(lbRTC_ymd_t* renewTime, lbRTC_time_c* time);
+void mTM_renewal_renew_time(void);
+void mTM_disp_time(s32 unused);
+s32 mTM_TimestepControl(void);
+void mTM_time(void);
+
+
#endif