2021-03-28 22:49:05 +02:00
|
|
|
#ifndef D_A_TBOXSW_H
|
|
|
|
|
#define D_A_TBOXSW_H
|
|
|
|
|
|
2022-11-11 10:09:48 -08:00
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
|
|
|
|
2024-06-10 01:34:52 -06:00
|
|
|
/**
|
|
|
|
|
* @ingroup actors-unsorted
|
|
|
|
|
* @class daTboxSw_c
|
|
|
|
|
* @brief Treasure Box Switch
|
|
|
|
|
*
|
|
|
|
|
* @details
|
|
|
|
|
*
|
|
|
|
|
*/
|
2022-11-11 10:09:48 -08:00
|
|
|
class daTboxSw_c : public fopAc_ac_c {
|
|
|
|
|
public:
|
|
|
|
|
/* 80D66858 */ int Create();
|
|
|
|
|
/* 80D66860 */ int create();
|
|
|
|
|
/* 80D668C8 */ int execute();
|
|
|
|
|
/* 80D66938 */ int draw();
|
|
|
|
|
/* 80D66940 */ int _delete();
|
|
|
|
|
};
|
|
|
|
|
|
2024-06-10 01:34:52 -06:00
|
|
|
STATIC_ASSERT(sizeof(daTboxSw_c) == 0x568);
|
|
|
|
|
|
2022-11-11 10:09:48 -08:00
|
|
|
namespace daTboxSw_prm {
|
|
|
|
|
inline u8 getTboxNo(daTboxSw_c* p_tbox) { return fopAcM_GetParam(p_tbox) & 0x3F; }
|
|
|
|
|
inline u8 getSwNo(daTboxSw_c* p_tbox) { return fopAcM_GetParam(p_tbox) >> 8; }
|
|
|
|
|
};
|
2021-03-28 22:49:05 +02:00
|
|
|
|
|
|
|
|
#endif /* D_A_TBOXSW_H */
|