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

Function zSceneInitFunc_Gust

src/SB/Game/zScene.cpp:609–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609static U32 zSceneInitFunc_Gust(zScene* s, zSceneObjectInstanceDesc* desc, U32 base_idx)
610{
611 S32 count;
612
613 count = s->baseCount[desc->baseType];
614
615 zGustInit();
616
617 if (count)
618 {
619 s->baseList[desc->baseType] = zGustGetGust(0);
620
621 for (S32 idx = 0; idx < count; idx++)
622 {
623 xBase* b = zGustGetGust(idx);
624
625 zSceneSet(b, base_idx);
626 zSceneObjHashtableAdd(b->id, b);
627
628 base_idx++;
629 }
630 }
631
632 return base_idx;
633}
634
635static U32 zSceneInitFunc_Volume(zScene* s, zSceneObjectInstanceDesc* desc, U32 base_idx)
636{

Callers

nothing calls this directly

Calls 4

zGustGetGustFunction · 0.85
zSceneSetFunction · 0.85
zGustInitFunction · 0.70
zSceneObjHashtableAddFunction · 0.70

Tested by

no test coverage detected