summaryrefslogtreecommitdiff
path: root/include/play_time.h
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-03-30 13:11:51 -0500
committerGitHub <noreply@github.com>2021-03-30 13:11:51 -0500
commita2d206665c6fffbd962375f262b7fbb05c7b7478 (patch)
tree6710109c4d9098b74da68ca8f18024d6c184ebc2 /include/play_time.h
parent2fd4f339b42c010191c199772b09ac34c580de94 (diff)
Move some data and Splitting (#32)
* move friend area settings to src * split out playtime into different C file and decomp a few more funcs * time -> play_time * fix include * split out more wonder mail stuff * unify 203B2C0 and unkDungeon structs. snuck in a decomp func too * split out more menu screens * work some more on trade items * doc a few more things * add a close nonmatch and decomp nullsub and small func * rollback struct attempt since it causes nonmatchings * only one func left in asm * death to trade_item asm and unify into one C file * more docing and cleanup * label main menu and trade items menu global menu struct * doc itemMode
Diffstat (limited to 'include/play_time.h')
-rw-r--r--include/play_time.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/play_time.h b/include/play_time.h
new file mode 100644
index 0000000..faae1d0
--- /dev/null
+++ b/include/play_time.h
@@ -0,0 +1,20 @@
+#ifndef PLAY_TIME_H
+#define PLAY_TIME_H
+
+struct PlayTimeStruct
+{
+ s16 hours;
+ u8 minutes;
+ u8 seconds;
+ u8 frames;
+};
+
+void IncrementPlayTime(struct PlayTimeStruct *Time);
+void ResetPlayTime(struct PlayTimeStruct *Time);
+struct PlayTimeStruct *GetPlayTime(void);
+void DeconstructPlayTime(struct PlayTimeStruct *r0, u32 *outHours, u32 *outMinutes, u32 *outSeconds);
+void InitializePlayTime(void);
+
+
+#endif // PLAY_TIME_H
+