diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2024-07-17 12:51:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-17 13:51:24 -0600 |
| commit | 5e283fd567b03c3ce8d1c2fc127fca505da1388f (patch) | |
| tree | 70da14b1476fbea1e3d1f27dc43cba4a05e076fa /include/d/a | |
| parent | 038cdb8b5f6207ba01c46799acf897fdb624fca0 (diff) | |
obj_movebox mostly done (#2181)
Diffstat (limited to 'include/d/a')
| -rw-r--r-- | include/d/a/d_a_obj.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/d/a/d_a_obj.h b/include/d/a/d_a_obj.h index 18177f271f..bc771a0444 100644 --- a/include/d/a/d_a_obj.h +++ b/include/d/a/d_a_obj.h @@ -15,6 +15,12 @@ void posMoveF_grade(fopAc_ac_c*, cXyz const*, cXyz const*, f32, f32, cXyz const* cXyz const*); void quat_rotBaseY(Quaternion*, cXyz const&); void HitSeStart(cXyz const*, int, dCcD_GObjInf const*, u32); + +template <typename T> +int PrmAbstract(const fopAc_ac_c* i_actor, T i_prmA, T i_prmB) { + u32 param = fopAcM_GetParam(i_actor); + return ((1 << i_prmA) - 1) & (param >> i_prmB); +} }; // namespace daObj #endif /* D_A_D_A_OBJ_H */ |
