mirror of
https://github.com/pmret/papermario.git
synced 2024-09-19 16:01:48 +02:00
add NPC_GROUP macro
This commit is contained in:
parent
24ce2e9752
commit
9a60b9f311
@ -192,6 +192,9 @@ typedef struct {
|
|||||||
/* 0x08 */ s32 battleID;
|
/* 0x08 */ s32 battleID;
|
||||||
} NpcGroupList[]; // size = 0x0C
|
} NpcGroupList[]; // size = 0x0C
|
||||||
|
|
||||||
|
#define NPC_GROUP(npcs, battleID) { sizeof(npcs) / sizeof(StaticNpc), &npcs, battleID }
|
||||||
|
#define NPC_GROUP_LIST_END() { 0, 0, 0 }
|
||||||
|
|
||||||
Enemy* get_enemy(NpcId npcId);
|
Enemy* get_enemy(NpcId npcId);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -187,8 +187,8 @@ StaticNpc goomba_npc = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
NpcGroupList npc_groups = {
|
NpcGroupList npc_groups = {
|
||||||
{ sizeof(goomba_npc) / sizeof(StaticNpc), &goomba_npc, 0x00010003 },
|
NPC_GROUP(goomba_npc, 0x00010003),
|
||||||
{ 0, 0, 0 },
|
NPC_GROUP_LIST_END(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// *INDENT-OFF*
|
// *INDENT-OFF*
|
||||||
|
Loading…
Reference in New Issue
Block a user