link ac_toudai

This commit is contained in:
Prakxo
2023-10-29 18:32:53 +01:00
parent 251bf2f2e2
commit 8da5ae63bf
4 changed files with 470 additions and 0 deletions
+23
View File
@@ -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
+11
View File
@@ -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);