From ae1a1adcf13daef3e5a4d2e885f6e4aa00e5d8a4 Mon Sep 17 00:00:00 2001 From: fig02 Date: Mon, 18 Nov 2024 18:47:41 -0500 Subject: Player Docs: Begin "Start Mode" Documentation (#2301) * set up start mode * note unused modes * fix bss --- include/z64player.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include') diff --git a/include/z64player.h b/include/z64player.h index d135c5741..d911fd783 100644 --- a/include/z64player.h +++ b/include/z64player.h @@ -7,6 +7,28 @@ struct Player; +#define PLAYER_GET_START_MODE(thisx) PARAMS_GET_S(thisx->params, 8, 4) + +typedef enum PlayerStartMode { + /* 0 */ PLAYER_START_MODE_0, + /* 1 */ PLAYER_START_MODE_1, + /* 2 */ PLAYER_START_MODE_2, + /* 3 */ PLAYER_START_MODE_3, + /* 4 */ PLAYER_START_MODE_4, + /* 5 */ PLAYER_START_MODE_5, + /* 6 */ PLAYER_START_MODE_6, + /* 7 */ PLAYER_START_MODE_7, + /* 8 */ PLAYER_START_MODE_UNUSED_8, // Unused, behaves the same as PLAYER_START_MODE_14 + /* 9 */ PLAYER_START_MODE_UNUSED_9, // Unused, behaves the same as PLAYER_START_MODE_14 + /* 10 */ PLAYER_START_MODE_UNUSED_10, // Unused, behaves the same as PLAYER_START_MODE_14 + /* 11 */ PLAYER_START_MODE_UNUSED_11, // Unused, behaves the same as PLAYER_START_MODE_14 + /* 12 */ PLAYER_START_MODE_UNUSED_12, // Unused, behaves the same as PLAYER_START_MODE_14 + /* 13 */ PLAYER_START_MODE_13, + /* 14 */ PLAYER_START_MODE_14, + /* 15 */ PLAYER_START_MODE_15, + /* 16 */ PLAYER_START_MODE_MAX +} PlayerStartMode; + typedef enum PlayerSword { /* 0 */ PLAYER_SWORD_NONE, /* 1 */ PLAYER_SWORD_KOKIRI, -- cgit v1.2.3