Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
partners.h
Go to the documentation of this file.
1#ifndef _WORLD_PARTNERS_H
2#define _WORLD_PARTNERS_H
3
4typedef void (*PartnerFunc)(Npc* partner);
5typedef s32 (*PartnerBoolFunc)(Npc* partner);
6typedef s32 (*PartnerTesHitFunc)(Npc* partner, Npc* enemy);
7
8typedef struct WorldPartner {
9 /* 0x00 */ void* dmaStart;
10 /* 0x04 */ void* dmaEnd;
11 /* 0x08 */ void* dmaDest;
12 /* 0x0C */ s32 isFlying;
13 /* 0x10 */ PartnerFunc init;
14 /* 0x14 */ EvtScript* takeOut;
15 /* 0x18 */ EvtScript* update;
16 /* 0x1C */ EvtScript* useAbility;
17 /* 0x20 */ EvtScript* putAway;
18 /* 0x24 */ s32 idle;
24 /* 0x3C */ EvtScript* onEnterMap;
25} WorldPartner; // size = 0x40
26
27extern Npc* wPartnerNpc; // wPartnerNpc
28
31s32 partner_init_put_away(Npc* partner);
32s32 partner_put_away(Npc* partner);
34s32 partner_use_ability(void);
35void partner_do_player_collision(Npc* partner);
37s32 func_800EA52C(s32);
41void partner_enable_input(void);
42
43#endif
Bytecode EvtScript[]
s32 partner_can_use_ability(void)
Definition partners.c:993
void(* PartnerFunc)(Npc *partner)
Definition partners.h:4
void * dmaStart
Definition partners.h:9
void * dmaEnd
Definition partners.h:10
void partner_walking_follow_player(Npc *partner)
Definition partners.c:1231
void * dmaDest
Always 0x802BD100
Definition partners.h:11
PartnerFunc preBattle
Definition partners.h:22
EvtScript * takeOut
Definition partners.h:14
void partner_resume_ability_script(void)
Definition partners.c:1125
PartnerBoolFunc canUseAbility
Definition partners.h:20
PartnerTesHitFunc testFirstStrike
Definition partners.h:19
s32 func_800EA52C(s32)
Definition partners.c:537
s32 partner_get_out(Npc *)
Definition partners.c:2259
void partner_enable_input(void)
Definition partners.c:2480
EvtScript * update
Definition partners.h:15
s32 partner_init_put_away(Npc *partner)
Definition partners.c:2178
s32 partner_use_ability(void)
Definition partners.c:964
PartnerBoolFunc canPlayerOpenMenus
Definition partners.h:21
PartnerFunc postBattle
Definition partners.h:23
EvtScript * onEnterMap
Definition partners.h:24
s32 partner_put_away(Npc *partner)
Definition partners.c:2185
s32(* PartnerBoolFunc)(Npc *partner)
Definition partners.h:5
EvtScript * useAbility
Definition partners.h:16
EvtScript * putAway
Definition partners.h:17
s32 partner_force_player_flip_done(void)
Definition partners.c:2454
s32(* PartnerTesHitFunc)(Npc *partner, Npc *enemy)
Definition partners.h:6
s32 partner_init_get_out(Npc *)
Definition partners.c:2252
void partner_do_player_collision(Npc *partner)
Definition partners.c:2495
void partner_suspend_ability_script(void)
Definition partners.c:1117
Npc * wPartnerNpc
Definition partners.c:43
PartnerFunc init
Definition partners.h:13