summaryrefslogtreecommitdiff
path: root/src/code/z_en_a_keep.c
diff options
context:
space:
mode:
authorSirius902 <10891979+Sirius902@users.noreply.github.com>2020-07-12 16:03:38 -0700
committerGitHub <noreply@github.com>2020-07-12 19:03:38 -0400
commit8c72e1dea69eeb4a27ff5de0a29728146ecde8c7 (patch)
tree7bfc00413a821ea0da6a9850349dca36accc23af /src/code/z_en_a_keep.c
parenta00015a1ac08c058511f3083b755f5838672f8dd (diff)
Decompiled ovl_Shot_Sun (#236)
* match ShotSun_Init * match ShotSun_Destroy * match func_80BADDCC * break up unk_19C to add spawnTimer * ShotSun_Update * func_80BADE74 * work on func_80BAE05C * make func_80BAE05C closer * use proper macros for osSyncPrintf * format if statement better and add temp player pointer func_80BAE05C * Reorder spawnPos to match stack args later * match func_80BAE05C * almost match func_80BADF0C * Remove temporary and add parenthesis * change part of comment and move last unk_1A4 assignment to be similar to decompiler * Change do while(false) to if (1) * func_80BADF0C * change comment * update spec * fix vt macro * cleanup and name * remove asm * remove data * remove extern Co-authored-by: Random <28494085+Random06457@users.noreply.github.com> * remove & for function pointers * rename and retype D_02007020 * format * remove tiny whitespace * reorder if statement * finish renaming * replace cast with bitwise operation * move globally used functions to functions.h * reorder description * move headers for EnItem00 and EnAObj to z64actor.h * retype Item_DropCollectible and Item_DropCollectible2 to return EnItem00* * rename ShotSun_StartFairyCountdown to ShotSun_TriggerFairy * rename ShotSun_FairyCountdown to ShotSun_SpawnFairy * add unk_E3EC field to MessageContext * rename to ShotSun_UpdateHyliaSun for now * remove != 0 on flag check * remove unsigned suffix and use enum constant for Item_DropCollectible call * add unk_95C field to Player * add ub comment * retype unk_1A4 and remove explicit struct padding * Update src/overlays/actors/ovl_Shot_Sun/z_shot_sun.c Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com> Co-authored-by: Random <28494085+Random06457@users.noreply.github.com> Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
Diffstat (limited to 'src/code/z_en_a_keep.c')
-rw-r--r--src/code/z_en_a_keep.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/code/z_en_a_keep.c b/src/code/z_en_a_keep.c
index ed2ab16b6..a48378b8c 100644
--- a/src/code/z_en_a_keep.c
+++ b/src/code/z_en_a_keep.c
@@ -1,38 +1,6 @@
#include <ultra64.h>
#include <global.h>
-typedef enum {
- /* 0x00 */ A_OBJ_BLOCK_SMALL,
- /* 0x01 */ A_OBJ_BLOCK_LARGE,
- /* 0x02 */ A_OBJ_BLOCK_HUGE,
- /* 0x03 */ A_OBJ_BLOCK_SMALL_ROT,
- /* 0x04 */ A_OBJ_BLOCK_LARGE_ROT,
- /* 0x05 */ A_OBJ_CUBE_SMALL,
- /* 0x06 */ A_OBJ_UNKNOWN_6,
- /* 0x07 */ A_OBJ_GRASS_CLUMP,
- /* 0x08 */ A_OBJ_TREE_STUMP,
- /* 0x09 */ A_OBJ_SIGNPOST_OBLONG,
- /* 0x0A */ A_OBJ_SIGNPOST_ARROW,
- /* 0x0B */ A_OBJ_KNOB
-} AObjType;
-
-struct EnAObj;
-
-typedef void (*EnAObjActionFunc)(struct EnAObj*, GlobalContext*);
-
-typedef struct EnAObj {
- /* 0x000 */ DynaPolyActor dyna;
- /* 0x164 */ EnAObjActionFunc actionFunc;
- /* 0x168 */ s32 unk_168;
- /* 0x16C */ s16 textId;
- /* 0x16E */ s16 unk_16E;
- /* 0x170 */ s16 unk_170;
- /* 0x172 */ s16 unk_172;
- /* 0x174 */ s16 unk_174;
- /* 0x178 */ f32 unk_178;
- /* 0x17C */ ColliderCylinder collider;
-} EnAObj; // size = 0x1C8
-
#define FLAGS 0x00000010
#define THIS ((EnAObj*)thisx)