mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 06:34:18 -04:00
link ac_toudai
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "types.h"
|
||||
#include "m_actor.h"
|
||||
#include "c_keyframe.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -10,6 +11,28 @@ extern "C" {
|
||||
|
||||
extern ACTOR_PROFILE Toudai_Profile;
|
||||
|
||||
typedef void (*TOUDAI_PROC)(ACTOR*, GAME_PLAY*);
|
||||
|
||||
typedef struct actor_toudai_s{
|
||||
ACTOR actor_class;
|
||||
int keyframe_state;
|
||||
cKF_SkeletonInfo_R_c keyframe;
|
||||
int current_frame;
|
||||
s_xyz work[15];
|
||||
s_xyz target[15];
|
||||
TOUDAI_PROC proc;
|
||||
u8 unk2A4[0x10];
|
||||
int current_proc;
|
||||
u8 unk2B8[0x4];
|
||||
int ready_flag;
|
||||
u8 unk2C0[0x8];
|
||||
f32 unk2C8;
|
||||
f32 unk2CC;
|
||||
f32 unk2D0;
|
||||
u8 unk2D4[0x4];
|
||||
int season;
|
||||
}TOUDAI_ACTOR;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -153,6 +153,16 @@ typedef struct bg_register_s {
|
||||
f32* scale_percent;
|
||||
} mCoBG_bg_regist_c;
|
||||
|
||||
typedef struct collision_offset_table_s {
|
||||
u8 unit_attribute;
|
||||
s8 centerRight_offset;
|
||||
s8 leftUp_offset;
|
||||
s8 leftDown_offset;
|
||||
s8 rightDown_offset;
|
||||
s8 rightUp_offset;
|
||||
s8 slate_switch;
|
||||
} mCoBG_OffsetTable_c;
|
||||
|
||||
extern u32 mCoBG_Wpos2BgAttribute_Original(xyz_t wpos);
|
||||
extern u32 mCoBG_Wpos2Attribute(xyz_t wpos, char* is_diggable);
|
||||
extern int mCoBG_CheckWaterAttribute(u32 attribute);
|
||||
@@ -171,6 +181,7 @@ extern int mCoBG_BnumUnum2HoleNumber(int block_x, int block_z, int ut_x, int ut_
|
||||
extern u32 mCoBG_UtNum2BgAttr(int ut_x, int ut_z);
|
||||
extern f32 mCoBG_UtNum2UtCenterY(int ut_x, int ut_z);
|
||||
extern int mCoBG_CheckCliffAttr(u32 attribute);
|
||||
extern void mCoBG_SetPluss5PointOffset_file(xyz_t pos, mCoBG_OffsetTable_c offsetptr, const char* file, int line);
|
||||
extern int mCoBG_Change2PoorAttr(mCoBG_Collision_u* col);
|
||||
extern int mCoBG_CheckHole(xyz_t wpos);
|
||||
extern int mCoBG_CheckSkySwing(xyz_t wpos);
|
||||
|
||||
Reference in New Issue
Block a user