mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-24 07:10:48 -04:00
15 lines
305 B
C++
15 lines
305 B
C++
#ifndef D_A_OBJ
|
|
#define D_A_OBJ
|
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
|
|
namespace daObj {
|
|
template <typename T>
|
|
int PrmAbstract(const fopAc_ac_c* actor, T width, T shift) {
|
|
u32 param = fopAcM_GetParam(actor);
|
|
return ((1 << width) - 1) & (param >> shift);
|
|
}
|
|
};
|
|
|
|
#endif /* D_A_OBJ */
|