mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
a6e76c0841
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
31 lines
593 B
C++
31 lines
593 B
C++
#ifndef D_A_TBOXSW_H
|
|
#define D_A_TBOXSW_H
|
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
|
|
/**
|
|
* @ingroup actors-unsorted
|
|
* @class daTboxSw_c
|
|
* @brief Treasure Box Switch
|
|
*
|
|
* @details
|
|
*
|
|
*/
|
|
class daTboxSw_c : public fopAc_ac_c {
|
|
public:
|
|
int Create();
|
|
int create();
|
|
int execute();
|
|
int draw();
|
|
int _delete();
|
|
};
|
|
|
|
STATIC_ASSERT(sizeof(daTboxSw_c) == 0x568);
|
|
|
|
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; }
|
|
};
|
|
|
|
#endif /* D_A_TBOXSW_H */
|