Merge remote-tracking branch 'upstream/main'
This commit is contained in:
commit
67e9549885
39 changed files with 6553 additions and 361 deletions
|
|
@ -27,22 +27,22 @@ void BoardTutorialItemSet(s32);
|
|||
void BoardCharWheelSetTarget(s32);
|
||||
void BoardTutorialDirInputSet(s32, s32, s32);
|
||||
void BoardSpaceStarSetIndex(s32);
|
||||
void BoardModelRotYSet(s16, f32);
|
||||
s32 BoardModelRotYSet(s16, f32);
|
||||
f32 BoardModelRotYGet(s16);
|
||||
void BoardModelLayerSet(s16, u8);
|
||||
s32 BoardModelLayerSet(s16, u8);
|
||||
void BoardTutorialHostSet(s16);
|
||||
s16 BoardModelIDGet(s16);
|
||||
void BoardModelScaleSetV(s16, Vec*);
|
||||
s32 BoardModelScaleSetV(s16, Vec*);
|
||||
void BoardLightHookSet(BoardLightHook set, BoardLightHook reset);
|
||||
s16 BoardModelCreate(s32, void*, s32);
|
||||
s16 BoardModelCreate(s32, s32*, s32);
|
||||
void BoardModelKill(s16);
|
||||
void fn_8006DDE8(s16, f32);
|
||||
s32 BoardModelMotionStart(s16, s32, s32);
|
||||
void BoardModelMotionSpeedSet(s16, f32);
|
||||
void BoardModelPosSetV(s16, Vec*);
|
||||
void BoardModelPosSet(s16, f32, f32, f32);
|
||||
void BoardModelRotSetV(s16 arg0, Vec* arg1);
|
||||
void BoardModelVisibilitySet(s16, s32);
|
||||
s32 fn_8006DDE8(s16, f32);
|
||||
s32 BoardModelMotionStart(s16, s32, u32);
|
||||
s32 BoardModelMotionSpeedSet(s16, f32);
|
||||
s32 BoardModelPosSetV(s16, Vec*);
|
||||
s32 BoardModelPosSet(s16, f32, f32, f32);
|
||||
s32 BoardModelRotSetV(s16 arg0, Vec* arg1);
|
||||
s32 BoardModelVisibilitySet(s16, s32);
|
||||
void BoardSpaceWalkEventFuncSet(BoardSpaceEventFunc func);
|
||||
void BoardSpaceWalkMiniEventFuncSet(BoardSpaceEventFunc func);
|
||||
void BoardSpaceLandEventFuncSet(BoardSpaceEventFunc func);
|
||||
|
|
@ -56,10 +56,10 @@ void BoardBooHouseHostSet(s16);
|
|||
void BoardTutorialHookSet(void*);
|
||||
void BoardTutorialBlockSetPos(s32, s32);
|
||||
s32 BoardCameraRotGet(Vec*);
|
||||
void BoardModelScaleSet(s16, f32, f32, f32);
|
||||
s32 BoardModelScaleSet(s16, f32, f32, f32);
|
||||
s32 BoardIsKill(void);
|
||||
void BoardModelMtxSet(s16, Mtx*);
|
||||
void BoardModelRotSet(s16, f32, f32, f32);
|
||||
s32 BoardModelRotSet(s16, f32, f32, f32);
|
||||
|
||||
void BoardBowserExec(s32 player, s32 space);
|
||||
void BoardBattleExec(s32 player, s32 space);
|
||||
|
|
|
|||
18
include/game/board/boo.h
Executable file
18
include/game/board/boo.h
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef _BOARD_BOO_H
|
||||
#define _BOARD_BOO_H
|
||||
|
||||
#include "dolphin.h"
|
||||
#include "game/object.h"
|
||||
|
||||
s16 BoardBooCreate(s32 arg0, Vec *arg1);
|
||||
void BoardBooKill(void);
|
||||
s32 BoardBooStealTypeSet(s32 arg0);
|
||||
s32 BoardBooStealMain(void);
|
||||
BOOL CheckBallCoinDone(void);
|
||||
void TakeBallStar(void);
|
||||
void ExecTakeBallStar(omObjData *arg0);
|
||||
BOOL CheckTakeBallStarDone(void);
|
||||
s32 BoardBooStealValueGet(s16 *arg0, s16 *arg1);
|
||||
BOOL BoardBooStealLightCheck(void);
|
||||
|
||||
#endif
|
||||
11
include/game/board/item.h
Executable file
11
include/game/board/item.h
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef _BOARD_ITEM_H
|
||||
#define _BOARD_ITEM_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
void BoardItemStart(s32 arg0, s32 arg1);
|
||||
BOOL BoardItemDoneCheck(void);
|
||||
void BoardItemPlayerRestore(s32 arg0, s32 arg1);
|
||||
void BoardItemBagItemSet(s16 *arg0);
|
||||
|
||||
#endif
|
||||
|
|
@ -87,8 +87,8 @@ s32 BoardIsKill(void);
|
|||
void BoardPauseDisableSet(s32 value);
|
||||
s32 BoardPauseDisableGet();
|
||||
void BoardSaveInit(s32 board);
|
||||
void BoardStoryConfigSet(s32 mg_type, s32 diff_story);
|
||||
void BoardPartyConfigSet(s32 team, s32 bonus_star, s32 mg_type, s32 max_turn, s32 p1_handicap, s32 p2_handicap, s32 p3_handicap, s32 p4_handicap);
|
||||
void BoardStoryConfigSet(s32 mg_list, s32 diff_story);
|
||||
void BoardPartyConfigSet(s32 team, s32 bonus_star, s32 mg_list, s32 max_turn, s32 p1_handicap, s32 p2_handicap, s32 p3_handicap, s32 p4_handicap);
|
||||
s32 BoardTurnNext(void);
|
||||
void BoardNextOvlSet(OverlayID overlay);
|
||||
s32 BoardStartCheck(void);
|
||||
|
|
|
|||
|
|
@ -34,8 +34,18 @@ s32 BoardModelAmbSet(s16 model, float r, float g, float b);
|
|||
s32 BoardModelExistCheck(s16 model, s32 arg1);
|
||||
s32 BoardModelExistDupe(s16 model, s32 arg1);
|
||||
s32 fn_8006DDE8(s16 model, float arg1);
|
||||
s32 BoardModelMotionCreate(s16 model, s32 data_num);
|
||||
s32 BoardModelMotionStartEndSet(s16 model, s16 start, s16 end);
|
||||
s32 BoardModelMotionStart(s16 model, s32 slot, u32 attr);
|
||||
s32 BoardModelMotionShiftSet(s16 model, s32 motion, float time, float shift_time, u32 attr);
|
||||
s32 BoardModelAttrSet(s16 model, u32 attr);
|
||||
s32 BoardModelMotionTimeSet(s16 model, float time);
|
||||
float BoardModelMotionTimeGet(s16 model);
|
||||
float BoardModelMotionMaxTimeGet(s16 model);
|
||||
s32 BoardModelMotionSpeedSet(s16 model, float speed);
|
||||
s32 BoardModelMotionEndCheck(s16 model);
|
||||
s32 BoardModelAlphaSet(s16 model, u8 alpha);
|
||||
s32 BoardModelRotYSet(s16 model, float rot);
|
||||
s32 BoardModelPosSet(s16 model, float x, float y, float z);
|
||||
s32 BoardModelPosSetV(s16 model, Vec *pos);
|
||||
s32 BoardModelRotSet(s16 model, float x, float y, float z);
|
||||
|
|
|
|||
|
|
@ -33,4 +33,6 @@ void BoardMakeRandomItem(void);
|
|||
void BoardItemGetDestPos(s32 arg0, Vec *arg1);
|
||||
void BoardItemStatusKill(s32 arg0);
|
||||
|
||||
extern s8 boardItemUser;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ void BoardWinKillAll(void);
|
|||
void BoardWinDestroy(void);
|
||||
void BoardWinProc(void);
|
||||
int BoardWinChoiceGet(void);
|
||||
void BoardWinPause(void);
|
||||
void BoardWinCreateChoice(s32 pos, u32 mess, s32 portrait, s32 choice);
|
||||
void BoardWinCreate(s32 pos, u32 mess, s32 portrait);
|
||||
void BoardWinInsertMesSet(u32 value, s32 index);
|
||||
|
|
|
|||
9
include/game/fault.h
Normal file
9
include/game/fault.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef _GAME_FAULT_H
|
||||
#define _GAME_FAULT_H
|
||||
|
||||
#include "game/gamework_data.h"
|
||||
|
||||
void HuFaultInitXfbDirectDraw(GXRenderModeObj *mode);
|
||||
void HuFaultSetXfbAddress(s16 index, void* value);
|
||||
|
||||
#endif
|
||||
|
|
@ -21,7 +21,7 @@ typedef struct system_state {
|
|||
u16 bonus_star : 1;
|
||||
u16 explain_mg : 1;
|
||||
u16 show_com_mg : 1;
|
||||
u16 mg_type : 2;
|
||||
u16 mg_list : 2;
|
||||
u16 mess_speed : 2;
|
||||
u16 save_mode : 2;
|
||||
};
|
||||
|
|
@ -45,7 +45,7 @@ typedef struct system_state {
|
|||
};
|
||||
/* 0x32 */ s8 unk_32;
|
||||
/* 0x34 */ u16 mg_next;
|
||||
/* 0x36 */ s16 mg_next_extra;
|
||||
/* 0x36 */ s16 mg_next_type;
|
||||
/* 0x38 */ u16 unk_38;
|
||||
/* 0x3A */ u8 flag[3][16];
|
||||
/* 0x6A */ u8 unk_6A[0x72];
|
||||
|
|
@ -157,9 +157,9 @@ static inline s32 GWLanguageGet(void)
|
|||
return GWGameStat.language;
|
||||
}
|
||||
|
||||
static inline s32 GWMGTypeGet(void)
|
||||
static inline s32 GWMGListGet(void)
|
||||
{
|
||||
return GWSystem.mg_type;
|
||||
return GWSystem.mg_list;
|
||||
}
|
||||
|
||||
static inline s32 GWMessSpeedGet(void)
|
||||
|
|
@ -177,4 +177,9 @@ static inline s32 GWPlayerTeamGet(s32 player)
|
|||
return GWPlayer[player].team;
|
||||
}
|
||||
|
||||
static inline s32 GWPlayerSpaceCurrGet(s32 player)
|
||||
{
|
||||
return GWPlayer[player].space_curr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ typedef struct {
|
|||
typedef struct particle_data {
|
||||
/* 0x00 */ s16 unk_00;
|
||||
/* 0x02 */ s16 unk_02;
|
||||
/* 0x04 */ char unk_04[0x1C];
|
||||
/* 0x04 */ float unk_04;
|
||||
/* 0x08 */ char unk_08[0x18];
|
||||
/* 0x20 */ s16 unk_20;
|
||||
/* 0x22 */ s16 unk_22;
|
||||
/* 0x24 */ float unk_24;
|
||||
|
|
@ -39,7 +40,7 @@ typedef struct particle_data {
|
|||
/* 0x2E */ char unk_2E[2];
|
||||
/* 0x30 */ s16 unk_30;
|
||||
/* 0x32 */ char unk_32[2];
|
||||
/* 0x34 */ s32 unk_34;
|
||||
/* 0x34 */ u32 unk_34;
|
||||
/* 0x38 */ s32 unk_38;
|
||||
/* 0x3C */ u32 unk_3C;
|
||||
/* 0x40 */ s32 unk_40;
|
||||
|
|
@ -115,6 +116,7 @@ void Hu3DParticleZRotSet(s16 arg0, float arg1);
|
|||
void Hu3DParticleColSet(s16 arg0, u8 arg1, u8 arg2, u8 arg3);
|
||||
void Hu3DParticleTPLvlSet(s16 arg0, float arg1);
|
||||
void Hu3DParticleBlendModeSet(s16 arg0, u8 arg1);
|
||||
void Hu3DParticleHookSet(s16 arg0, void *arg1);
|
||||
void Hu3DParticleAttrSet(s16 arg0, u8 arg1);
|
||||
void Hu3DParticleAttrReset(s16 arg0, u8 arg1);
|
||||
void Hu3DParticleAnimModeSet(s16 arg0, s16 arg1);
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ void Hu3DNoSyncSet(s32);
|
|||
s16 Hu3DModelCreate(void *);
|
||||
s16 Hu3DModelLink(s16);
|
||||
s16 Hu3DHookFuncCreate(ModelHookFunc);
|
||||
void Hu3DModelKill(s16);
|
||||
void Hu3DModelAllKill(void);
|
||||
void Hu3DModelPosSet(s16, f32, f32, f32);
|
||||
void Hu3DModelPosSetV(s16, Vec *);
|
||||
|
|
@ -221,7 +222,7 @@ void Hu3DShadowSizeSet(u16);
|
|||
void Hu3DShadowExec(void);
|
||||
s16 Hu3DProjectionCreate(void*, f32, f32, f32);
|
||||
void Hu3DProjectionKill(s16);
|
||||
void Hu3DProjectionPosSet(s16, Vec, Vec, Vec);
|
||||
void Hu3DProjectionPosSet(s16, Vec*, Vec*, Vec*);
|
||||
void Hu3DProjectionTPLvlSet(s16, f32);
|
||||
void Hu3DMipMapSet(char*, s16, s32, f32);
|
||||
|
||||
|
|
|
|||
43
include/game/objsub.h
Normal file
43
include/game/objsub.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#ifndef _GAME_OBJSUB_H
|
||||
#define _GAME_OBJSUB_H
|
||||
|
||||
#include "dolphin.h"
|
||||
#include "game/process.h"
|
||||
#include "game/gamework_data.h"
|
||||
|
||||
typedef struct mg_info {
|
||||
u16 ovl;
|
||||
u8 type;
|
||||
u8 flag;
|
||||
u8 record_idx;
|
||||
u32 name_mess;
|
||||
u32 data_dir;
|
||||
u32 inst_pic[3];
|
||||
u32 mg_pic[3];
|
||||
u32 rules_mess;
|
||||
u32 control_mess[2];
|
||||
u32 advice_mess;
|
||||
} MgInfo;
|
||||
|
||||
s16 omMgIndexGet(s16 overlay);
|
||||
void omGameSysInit(Process *objman);
|
||||
void omVibrate(s16 player_cfg_index, s16 duration, s16 off, s16 on);
|
||||
|
||||
|
||||
extern s16 mgTypeCurr;
|
||||
extern s16 mgBattleStar[4];
|
||||
extern s16 mgBattleStarMax;
|
||||
extern u8 lbl_801D3E94;
|
||||
extern s32 mgRecordExtra;
|
||||
extern s32 mgQuitExtraF;
|
||||
extern s32 mgPracticeEnableF;
|
||||
extern s32 mgInstExitEnableF;
|
||||
extern u8 mgBoardHostEnableF;
|
||||
|
||||
extern s16 mgTicTacToeGrid[3][3];
|
||||
extern u8 mgIndexList[256];
|
||||
extern GameStat mgGameStatBackup;
|
||||
|
||||
extern MgInfo mgInfoTbl[];
|
||||
|
||||
#endif
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
#define SPRITE_ATTR_PAUSED 0x1
|
||||
#define SPRITE_ATTR_LOOP 0x2
|
||||
#define SPRITE_ATTR_HIDDEN 0x4
|
||||
#define SPIRTE_ATTR_BILINEAR 0x8
|
||||
#define SPRITE_ATTR_BILINEAR 0x8
|
||||
#define SPRITE_ATTR_FUNC 0x10
|
||||
#define SPRITE_ATTR_NOPAUSE 0x20
|
||||
#define SPRITE_ATTR_REVERSE 0x40
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue