daTagAssist_Create

This commit is contained in:
Pheenoh 2023-02-14 15:00:14 -07:00
parent 95b6448656
commit 05c09f99f6
2 changed files with 31 additions and 13 deletions

View File

@ -2,5 +2,26 @@
#define D_A_TAG_ASSISTANCE_H
#include "dolphin/types.h"
#include "f_op/f_op_actor_mng.h"
class daTagAssist_c : public fopAc_ac_c {
public:
void create_init() {
mAttentionInfo.mFlags = 0;
field_0x570 = -1;
}
int create() {
if (!fopAcM_CheckCondition(this, 8)) {
new (this) daTagAssist_c();
fopAcM_OnCondition(this, 8);
}
create_init();
return cPhs_COMPLEATE_e;
}
u8 field_0x568[8];
s16 field_0x570;
};
#endif /* D_A_TAG_ASSISTANCE_H */

View File

@ -6,17 +6,7 @@
#include "rel/d/a/tag/d_a_tag_assistance/d_a_tag_assistance.h"
#include "dol2asm.h"
#include "dolphin/types.h"
//
// Types:
//
struct fopAc_ac_c {
/* 80018B64 */ fopAc_ac_c();
/* 80018C8C */ ~fopAc_ac_c();
};
struct daTagAssist_c {};
#include "d/d_procname.h"
//
// Forward References:
@ -35,8 +25,8 @@ extern "C" extern void* g_profile_Tag_Assist[12];
extern "C" void __ct__10fopAc_ac_cFv();
extern "C" void __dt__10fopAc_ac_cFv();
extern "C" void fopAcM_searchActorDistanceXZ__FPC10fopAc_ac_cPC10fopAc_ac_c();
extern "C" extern void* g_fopAc_Method[8];
extern "C" extern void* g_fpcLf_Method[5 + 1 /* padding */];
// extern "C" extern void* g_fopAc_Method[8];
// extern "C" extern void* g_fpcLf_Method[5 + 1 /* padding */];
extern "C" extern u8 g_dComIfG_gameInfo[122384];
//
@ -45,6 +35,12 @@ extern "C" extern u8 g_dComIfG_gameInfo[122384];
/* 80D55E38-80D55E98 000078 0060+00 1/0 0/0 0/0 .text daTagAssist_Create__FP10fopAc_ac_c
*/
#ifndef NONMATCHING
static int daTagAssist_Create(fopAc_ac_c* i_actorP) {
daTagAssist_c* tag_assist = (daTagAssist_c*)i_actorP;
return tag_assist->create();
}
#else
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
@ -53,6 +49,7 @@ static asm void daTagAssist_Create(fopAc_ac_c* param_0) {
#include "asm/rel/d/a/tag/d_a_tag_assistance/d_a_tag_assistance/daTagAssist_Create__FP10fopAc_ac_c.s"
}
#pragma pop
#endif
/* 80D55E98-80D55EC8 0000D8 0030+00 1/0 0/0 0/0 .text daTagAssist_Execute__FP13daTagAssist_c */
#pragma push