summaryrefslogtreecommitdiff
path: root/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.h
blob: d976de5e38d33979803b6df4a992b2f233f1ddcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef Z_OBJ_ROOMTIMER_H
#define Z_OBJ_ROOMTIMER_H

#include "global.h"

#define ROOMTIMER_GET_SWITCH_FLAG(thisx) (((thisx)->params >> 9) & 0x7F)

struct ObjRoomtimer;

typedef void (*ObjRoomtimerActionFunc)(struct ObjRoomtimer*, PlayState*);

typedef struct ObjRoomtimer {
    /* 0x000 */ Actor actor;
    /* 0x144 */ ObjRoomtimerActionFunc actionFunc;
    /* 0x148 */ s32 switchFlag;
} ObjRoomtimer; // size = 0x14C

#endif // Z_OBJ_ROOMTIMER_H