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

Method ParseLinks

src/SB/Game/zNPCTypeDuplotron.cpp:166–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void zNPCDuplotron::ParseLinks()
167{
168 zNPCCommon::ParseLinks();
169
170 if (this->spawner != NULL)
171 {
172 for (S32 i = 0; i < this->linkCount; i++)
173 {
174 xLinkAsset* link = &this->link[i];
175
176 if (link->dstEvent == eEventConnectToChild)
177 {
178 xSceneID2Name(globals.sceneCur, this->id);
179 xSceneID2Name(globals.sceneCur, link->dstAssetID);
180
181 xBase* mychild = zSceneFindObject(link->dstAssetID);
182 if (mychild != NULL)
183 {
184 this->ParseChild(mychild);
185 }
186 }
187 }
188 }
189
190 return;
191}
192
193void zNPCDuplotron::BUpdate(xVec3* pos)
194{

Callers

nothing calls this directly

Calls 4

ParseChildMethod · 0.95
xSceneID2NameFunction · 0.85
zSceneFindObjectFunction · 0.85
ParseLinksFunction · 0.50

Tested by

no test coverage detected