Move macros to header

This commit is contained in:
JordanLongstaff 2025-06-04 19:50:44 -04:00
parent 5546b08fd3
commit a52a5eb5cc
2 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,6 @@
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_CAN_PRESS_SWITCHES) #define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_CAN_PRESS_SWITCHES)
#define ENRU1_SWITCH_FLAG(thisx) PARAMS_GET_U((thisx)->params, 8, 8)
#define ENRU1_TYPE(thisx) PARAMS_GET_U((thisx)->params, 0, 8)
void EnRu1_Init(Actor* thisx, PlayState* play); void EnRu1_Init(Actor* thisx, PlayState* play);
void EnRu1_Destroy(Actor* thisx, PlayState* play); void EnRu1_Destroy(Actor* thisx, PlayState* play);
void EnRu1_Update(Actor* thisx, PlayState* play); void EnRu1_Update(Actor* thisx, PlayState* play);

View File

@ -7,6 +7,9 @@
#include "overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.h" #include "overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.h"
#include "overlays/actors/ovl_Door_Warp1/z_door_warp1.h" #include "overlays/actors/ovl_Door_Warp1/z_door_warp1.h"
#define ENRU1_SWITCH_FLAG(thisx) PARAMS_GET_U((thisx)->params, 8, 8)
#define ENRU1_TYPE(thisx) PARAMS_GET_U((thisx)->params, 0, 8)
struct EnRu1; struct EnRu1;
typedef void (*EnRu1ActionFunc)(struct EnRu1*, struct PlayState*); typedef void (*EnRu1ActionFunc)(struct EnRu1*, struct PlayState*);