Decompile most of board/spaces.c
This commit is contained in:
parent
a70d490dea
commit
72c928e121
12 changed files with 555 additions and 33 deletions
|
|
@ -58,8 +58,7 @@ static inline s32 BoardCurrGet()
|
|||
|
||||
static inline s32 BoardPartyFlagGet()
|
||||
{
|
||||
s32 value = GWSystem.party;
|
||||
return value;
|
||||
return GWSystem.party;
|
||||
}
|
||||
|
||||
extern BoardCameraData boardCamera;
|
||||
|
|
@ -117,6 +116,7 @@ s32 BoardCameraCullCheck(Vec *point, float radius);
|
|||
s32 BoardCameraMotionIsDone(void);
|
||||
void BoardCameraMotionWait(void);
|
||||
void BoardCameraInit(void);
|
||||
void BoardMGCreate(u16 param);
|
||||
float BoardArcSin(float value);
|
||||
float BoardArcCos(float value);
|
||||
void BoardRandInit(void);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,10 @@ s32 BoardPlayerIsAllCom(void);
|
|||
void BoardPlayerRotSet(s32, f32, f32, f32);
|
||||
void BoardPlayerPosGet(s32, Vec*);
|
||||
void BoardPlayerCoinsSet(s32 player, s32 value);
|
||||
s32 BoardPlayerSizeGet(s32 player);
|
||||
void BoardPlayerAutoSizeSet(s32 player, s32 value);
|
||||
void BoardPlayerMotionStart(s16, s32, s32);
|
||||
void BoardPlayerMotionStart(s32, s32, s32);
|
||||
void BoardPlayerMotionShiftSet(s32 player, s32 arg1, float start, float end, u32 attr);
|
||||
void BoardPlayerRotYSet(s32 player, float rot_y);
|
||||
|
||||
#endif
|
||||
|
|
@ -32,6 +32,7 @@ s32 BoardSpaceTypeGet(s32 layer, s32 index);
|
|||
void BoardSpaceTypeSet(s32 layer, s32 index, s32 type);
|
||||
s32 BoardSpacePosGet(s32 layer, s32 index, Vec *pos);
|
||||
void BoardSpaceCornerPosGet(s32 index, s32 corner, Vec *pos);
|
||||
s32 BoardSpaceRotGet(s32 layer, s32 index, Vec *rot);
|
||||
s32 BoardSpaceFlagSearch(s32 layer, u32 flag);
|
||||
s32 BoardSpaceFlagPosGet(s32 layer, u32 flag, Vec *pos);
|
||||
s32 BoardSpaceLinkFlagSearch(s32 layer, s32 index, u32 flag);
|
||||
|
|
@ -48,5 +49,6 @@ s32 BoardSpaceStarGet(s32 index);
|
|||
s32 BoardSpaceStarGetCurr(void);
|
||||
s32 BoardSpaceStarCheck(s32 index);
|
||||
void BoardSpaceLandExec(s32 player, s32 space);
|
||||
void BoardSpaceBlockPosSet(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ typedef struct system_state {
|
|||
/* 0x32 */ s8 unk_32;
|
||||
/* 0x34 */ u16 mg_next;
|
||||
/* 0x36 */ s16 mg_next_extra;
|
||||
/* 0x38 */ s16 unk_38;
|
||||
/* 0x38 */ u16 unk_38;
|
||||
/* 0x3A */ u8 flag[3][16];
|
||||
/* 0x6A */ u8 unk_6A[0x72];
|
||||
} SystemState; //8018fcf8, sizeof 0xDC
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
typedef struct particle_data ParticleData;
|
||||
|
||||
typedef void (*ModelHookFunc)(struct model_data *, Mtx);
|
||||
|
||||
typedef struct model_data {
|
||||
u8 unk_00;
|
||||
u8 unk_01;
|
||||
|
|
@ -46,7 +48,10 @@ typedef struct model_data {
|
|||
char unk_78[0x1C];
|
||||
f32 unk_94;
|
||||
char unk_98[0x2C];
|
||||
HsfData *hsfData;
|
||||
union {
|
||||
HsfData *hsfData;
|
||||
ModelHookFunc hook;
|
||||
};
|
||||
HsfData *unk_C8;
|
||||
Vec pos;
|
||||
Vec rot;
|
||||
|
|
@ -169,7 +174,7 @@ void Hu3DPauseSet(s32);
|
|||
void Hu3DNoSyncSet(s32);
|
||||
s16 Hu3DModelCreate(void *);
|
||||
s16 Hu3DModelLink(s16);
|
||||
s16 Hu3DHookFuncCreate(HsfData*);
|
||||
s16 Hu3DHookFuncCreate(ModelHookFunc);
|
||||
void Hu3DModelAllKill(void);
|
||||
void Hu3DModelPosSet(s16, f32, f32, f32);
|
||||
void Hu3DModelPosSetV(s16, Vec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue