MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / AddSpawnNPC

Method AddSpawnNPC

src/SB/Game/zNPCSpawner.cpp:107–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107S32 zNPCSpawner::AddSpawnNPC(zNPCCommon* npc)
108{
109 S32 ack = 0;
110 for (S32 i = 0; i < 0x10; i++)
111 {
112 SMNPCStatus* npc_stat = &this->npcpool[i];
113 if (npc_stat->npc == NULL)
114 {
115 npc_stat->npc = npc;
116 ack = 1;
117 npc_stat->status = SM_NPC_READY;
118 npc_stat->sp_prefer = NULL;
119 break;
120 }
121 }
122 // Need to figure out what it is calling here.
123 npc->DBG_Name();
124 return ack;
125}
126
127void zNPCSpawner::Reset()
128{

Callers 1

ParseChildMethod · 0.80

Calls 1

DBG_NameMethod · 0.80

Tested by

no test coverage detected