Skip to content

Commit adfaab8

Browse files
authored
zNPCMessenger cleanup (#697)
1 parent f226898 commit adfaab8

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

src/SB/Game/zNPCMessenger.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@
1414
static NPCPSData g_postoffice = {};
1515
static S32 g_lockarea;
1616

17-
// see comment in header for why this is declared here
17+
static void NPCPS_copyMsgInfo(NPCMsg*, NPCMsg*, F32);
18+
static void NPCPS_queMessage(NPCMsg* msg);
1819
static S32 NPCPS_flagForMID(en_NPC_MSG_ID);
20+
static void NPCPS_MsgPoolInit(NPCPSData* npc, S32 unk);
21+
static void NPCPS_MsgPoolReset(NPCPSData* npc);
22+
static void NPCPS_CltPoolInit(NPCPSData* npc, S32 unk);
23+
static void NPCPS_CltPoolReset(NPCPSData* npc);
24+
static NPCPSData* NPCPS_postOffice();
25+
static S32 NPCPS_grabMsg();
26+
static void NPCPS_freeMsg(NPCMsg* inmsg);
1927

2028
void zNPCMsg_Startup()
2129
{

src/SB/Game/zNPCMessenger.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ struct NPCAreaInfo
166166
xVec3 pos_origin;
167167
};
168168

169-
170-
171169
struct NPCMsg
172170
{
173171
en_NPC_MSG_ID msgid;
@@ -215,13 +213,10 @@ void zNPCMsg_Shutdown();
215213
void zNPCMsg_ScenePrepare();
216214
void zNPCMsg_SceneReset();
217215
void zNPCMsg_Timestep(xScene* xscn, F32 dt);
218-
/* TODO: en_NPC_MSG_ID definition in zNPCTypeCommon.h is causing issues here */
219216
void zNPCMsg_AreaNotify(zNPCCommon* sender, en_NPC_MSG_ID msgid, F32 rad, S32 filter,
220217
en_NPCTYPES toNPCType);
221218
void zNPCMsg_AreaNotify(zNPCCommon* sender, en_NPC_MSG_ID msgid, F32 rad, S32 filter,
222219
en_NPCTYPES* toNPCType);
223-
224-
225220
void zNPCMsg_AreaNotify(zNPCCommon* sender, NPCMsg* msg, F32 radius, S32 filter,
226221
en_NPCTYPES* npcTypeList);
227222
void zNPCMsg_AreaPlayerStun(F32 stuntime, F32 radius, xVec3* pos);
@@ -230,14 +225,5 @@ void zNPCMsg_SendMsg(en_NPC_MSG_ID msgevent, U32 npc_id);
230225
void zNPCMsg_SendMsg(en_NPC_MSG_ID msgevent, zNPCCommon* npc_sendto);
231226
void zNPCMsg_SendMsg(NPCMsg* inmsg, zNPCCommon* npc_sendto);
232227
void zNPCMsg_SendMsg(NPCMsg* inmsg, F32 delay, zNPCCommon* npc_sendto);
233-
static void NPCPS_copyMsgInfo(NPCMsg*, NPCMsg*, F32);
234-
static void NPCPS_queMessage(NPCMsg* msg);
235-
static void NPCPS_MsgPoolInit(NPCPSData* npc, S32 unk);
236-
static void NPCPS_MsgPoolReset(NPCPSData* npc);
237-
static void NPCPS_CltPoolInit(NPCPSData* npc, S32 unk);
238-
static void NPCPS_CltPoolReset(NPCPSData* npc);
239-
static NPCPSData* NPCPS_postOffice();
240-
static S32 NPCPS_grabMsg();
241-
static void NPCPS_freeMsg(NPCMsg* inmsg);
242228

243229
#endif

0 commit comments

Comments
 (0)