baanim.h documentation
This commit is contained in:
@@ -522,7 +522,7 @@ void func_802A7CA8(void);
|
||||
void func_802A7D74(void);
|
||||
|
||||
//0x00000080
|
||||
void func_802B978C(void);
|
||||
void bswalrus_timeout_init(void);
|
||||
void func_802B9830(void);
|
||||
void func_802B9880(void);
|
||||
|
||||
|
@@ -4,9 +4,9 @@
|
||||
#include <ultra64.h>
|
||||
|
||||
#ifndef NONMATCHING
|
||||
#define func_802875AC(this, file, line) _func_802875AC(this, file, line)
|
||||
#define animctrl_start(this, file, line) _animctrl_start(this, file, line)
|
||||
#else
|
||||
#define func_802875AC(this, file, line) _func_802875AC(this, __FILE__, __LINE__)
|
||||
#define animctrl_start(this, file, line) _animctrl_start(this, __FILE__, __LINE__)
|
||||
#endif
|
||||
|
||||
enum animctrl_playback_e{
|
||||
@@ -39,14 +39,14 @@ typedef struct animctrl_s{
|
||||
f32 subrange_end;
|
||||
f32 animation_duration;
|
||||
f32 transition_duration;
|
||||
float unk18;
|
||||
float start;
|
||||
s32 index;
|
||||
u8 playback_type;
|
||||
u8 playback_direction;
|
||||
u8 smooth_transition;
|
||||
u8 unk23;
|
||||
u8 unk24;
|
||||
u8 unk25;
|
||||
u8 default_start;
|
||||
u8 pad26[2];
|
||||
} AnimCtrl;
|
||||
|
||||
@@ -64,8 +64,8 @@ Animation *animctrl_getAnimPtr(AnimCtrl *this);
|
||||
void func_8028746C(AnimCtrl *this, void (* arg1)(s32,s32));
|
||||
void func_8028748C(AnimCtrl *this, s32 arg1);
|
||||
void animctrl_reset(AnimCtrl *this);
|
||||
void func_8028752C(AnimCtrl *this);
|
||||
void _func_802875AC(AnimCtrl * this, char *file, s32 line);
|
||||
void __animctrl_gotoStart(AnimCtrl *this);
|
||||
void _animctrl_start(AnimCtrl * this, char *file, s32 line);
|
||||
void animctrl_setAnimTimer(AnimCtrl *this, f32 timer);
|
||||
void animctrl_setPlaybackType(AnimCtrl *this, enum animctrl_playback_e arg1);
|
||||
void animctrl_setDirection(AnimCtrl *this, s32 arg1);
|
||||
@@ -74,7 +74,7 @@ void animctrl_setDuration(AnimCtrl *this, f32 arg1);
|
||||
void animctrl_setTransitionDuration(AnimCtrl *this, f32 arg1);
|
||||
void animctrl_setSubRange(AnimCtrl *this, f32 start, f32 end);
|
||||
void animctrl_getSubRange(AnimCtrl *this, f32 *startPtr, f32 *endPtr);
|
||||
void func_8028774C(AnimCtrl *this, f32 arg1);
|
||||
void animctrl_setStart(AnimCtrl *this, f32 arg1);
|
||||
void func_80287784(AnimCtrl *this, s32 arg1);
|
||||
enum asset_e animctrl_getIndex(AnimCtrl *this);
|
||||
enum animctrl_playback_e animctrl_getPlaybackType(AnimCtrl *this);
|
||||
|
11
include/core2/ba/anim.h
Normal file
11
include/core2/ba/anim.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef __CORE2_BA_ANIM_H__
|
||||
#define __CORE2_BA_ANIM_H__
|
||||
|
||||
enum baanim_update_type_e {
|
||||
BAANIM_UPDATE_0_NONE,
|
||||
BAANIM_UPDATE_1_NORMAL,
|
||||
BAANIM_UPDATE_2_SCALE_HORZ,
|
||||
BAANIM_UPDATE_3_SCALE_VERT
|
||||
};
|
||||
|
||||
#endif
|
@@ -2411,6 +2411,8 @@ enum asset_e
|
||||
ASSET_11F_ANIM_BSWALRUS_IDLE,
|
||||
ASSET_120_ANIM_BSWALRUS_WALK,
|
||||
ASSET_121_ANIM_BSWALRUS_JUMP,
|
||||
ASSET_122_ANIM_BSCROC_BITE,
|
||||
ASSET_123_ANIM_BSCROC_EAT_BAD,
|
||||
|
||||
ASSET_125_ANIM_YUMBLIE_APPEAR = 0x125,
|
||||
ASSET_126_ANIM_YUMBLIE_HIDE,
|
||||
@@ -2444,7 +2446,7 @@ enum asset_e
|
||||
ASSET_147_ANIM_BOOMBOX_MOVE,
|
||||
ASSET_148_ANIM_BOOMBOX_DIE,
|
||||
ASSET_149_ANIM_BSSPLAT,
|
||||
ASSET_14A_ANIM_BANJO_LISTENING,
|
||||
ASSET_14A_ANIM_BSREST_LISTEN,
|
||||
|
||||
ASSET_153_ANIM_BURIED_TREASURE_APPEAR = 0x153,
|
||||
|
||||
@@ -2463,6 +2465,7 @@ enum asset_e
|
||||
ASSET_164_ANIM_TOOTS_SING = 0x164,
|
||||
ASSET_165_ANIM_BEEHIVE_IDLE,
|
||||
ASSET_166_ANIM_BURIED_TREASURE_BOUNCE,
|
||||
ASSET_167_ANIM_BSREST_MOVE,
|
||||
|
||||
ASSET_16E_ANIM_MUMBO_RECLINE = 0x16E,
|
||||
ASSET_16F_ANIM_ZUBBA_FLY_MOVE,
|
||||
@@ -2498,6 +2501,8 @@ enum asset_e
|
||||
ASSET_1A1_ANIM_SLED = 0x1A1,
|
||||
ASSET_1A2_ANIM_NABNUT_SLEEP,
|
||||
|
||||
ASSET_1A9_ANIM_BSWALRUS_LOSS = 0x1A9,
|
||||
|
||||
ASSET_1AF_ANIM_TWINKLY_MUNCHER_APPEAR = 0x1AF,
|
||||
ASSET_1B0_ANIM_TWINKLY_MUNCHER_DIE,
|
||||
ASSET_1B1_ANIM_TWINKLY_MUNCHER_IDLE,
|
||||
|
@@ -85,8 +85,8 @@ float gu_sqrtf(float val);
|
||||
BKSpriteFrame *spriteGetFramePtr(BKSprite *, u32);
|
||||
|
||||
bool baanim_isAt(f32);
|
||||
void func_8028A180(enum asset_e anim_id, f32 duration);
|
||||
void func_8028A37C(f32);
|
||||
void baanim_playForDuration_once(enum asset_e anim_id, f32 duration);
|
||||
void baanim_setEnd(f32);
|
||||
|
||||
int player_inWater(void);
|
||||
|
||||
@@ -110,7 +110,7 @@ f32 player_getYPosition(void);
|
||||
|
||||
void func_80297970(f32);
|
||||
|
||||
f32 func_80297AAC(void);
|
||||
f32 _get_vertVelocity(void);
|
||||
|
||||
void climbGetBottom(f32 dst[3]);
|
||||
|
||||
@@ -264,7 +264,7 @@ void func_80256E24(f32[3], f32, f32, f32, f32, f32);
|
||||
void func_8025727C(f32 x1, f32 y1, f32 z1, f32 x2, f32 y2, f32 z2, f32 *o1, f32 *o2);
|
||||
f32 func_80257A44(f32, f32);
|
||||
f32 ml_interpolate_f(f32, f32, f32);
|
||||
f32 ml_mapRange_f(f32, f32, f32, f32, f32);
|
||||
f32 ml_mapAbsRange_f(f32, f32, f32, f32, f32);
|
||||
int func_80257F18(f32 src[3], f32 target[3], f32 *yaw);
|
||||
bool func_8025801C(f32[3], f32*);
|
||||
|
||||
@@ -287,14 +287,14 @@ void func_80287F7C(struct54s *arg0, s32 arg1);
|
||||
void func_80287F98(struct54s *arg0, s32 arg1);
|
||||
void func_80287FDC(struct54s *arg0, s32 arg1);
|
||||
|
||||
void func_80289EA8(f32, f32);
|
||||
void baanim_setDurationRange(f32, f32);
|
||||
|
||||
|
||||
void func_8028A010(enum asset_e anim_id, f32 duration);
|
||||
void func_8028A100(enum asset_e anim_id, f32, f32);
|
||||
void func_8028A1F4(enum asset_e anim_id, f32 duration, f32 arg2);
|
||||
void func_8028A274(enum asset_e, f32);
|
||||
void func_8028A3B8(f32, f32);
|
||||
void baanim_playForDuration_loopSmooth(enum asset_e anim_id, f32 duration);
|
||||
void baanim_playForDuration_loopStartingAt(enum asset_e anim_id, f32, f32);
|
||||
void baanim_playForDuration_onceStartingAt(enum asset_e anim_id, f32 duration, f32 arg2);
|
||||
void baanim_playForDuration_onceSmooth(enum asset_e, f32);
|
||||
void baanim_setEndAndDuration(f32, f32);
|
||||
int func_8028AED4(f32*, f32);
|
||||
void func_8028E668(f32[3], f32, f32, f32);
|
||||
bool func_8028F364(f32[3], f32, f32, enum actor_e actor_id, Actor**);
|
||||
@@ -320,7 +320,7 @@ f32 func_80294500(void);
|
||||
BKCollisionTri *func_802946F0(void);
|
||||
void func_80294980(f32 arg0[3]);
|
||||
f32 get_slope_timer(void);
|
||||
f32 func_80294A40(void);
|
||||
f32 get_turbo_duration(void);
|
||||
void func_80295C08(void (* arg0)(void));
|
||||
void func_802978DC(int);
|
||||
void func_80297970(f32);
|
||||
@@ -330,7 +330,7 @@ void func_802979AC(f32, f32);
|
||||
f32 func_80297A64(void);
|
||||
f32 func_80297A70(void);
|
||||
f32 func_80297A7C(void);
|
||||
f32 func_80297AB8(void);
|
||||
f32 _get_horzVelocity(void);
|
||||
f32 func_80297AF0(void);
|
||||
void gravity_set(f32);
|
||||
void func_80297B64(f32);
|
||||
@@ -356,8 +356,8 @@ void func_80299650(f32, f32);
|
||||
void func_80299B58(f32, f32);
|
||||
void func_80299CF4(enum sfx_e, f32, s32);
|
||||
void func_80299D2C(enum sfx_e, f32, s32);
|
||||
void func_80289EC8(f32, f32, f32, f32);
|
||||
void func_80289EF8(f32);
|
||||
void baanim_setVelocityMapRanges(f32, f32, f32, f32);
|
||||
void baanim_scaleDuration(f32);
|
||||
f32 bsStoredState_getLongLegTimer(void);
|
||||
f32 bsStoredState_getTurboTimer(void);
|
||||
void bsStoredState_setLongLegTimer(f32);
|
||||
@@ -507,7 +507,7 @@ void func_80352CF4(f32 *, f32 *, f32, f32);
|
||||
|
||||
|
||||
|
||||
AnimCtrl *_player_getAnimCtrlPtr(void);
|
||||
AnimCtrl *baanim_getAnimCtrlPtr(void);
|
||||
void _get_velocity(f32 dst[3]);
|
||||
void player_setYPosition(f32);
|
||||
|
||||
|
Reference in New Issue
Block a user