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

Function zSceneInitFunc_Volume

src/SB/Game/zScene.cpp:635–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635static U32 zSceneInitFunc_Volume(zScene* s, zSceneObjectInstanceDesc* desc, U32 base_idx)
636{
637 S32 count;
638
639 count = s->baseCount[desc->baseType];
640
641 zVolumeInit();
642
643 if (count)
644 {
645 s->baseList[desc->baseType] = zVolumeGetVolume(0);
646
647 for (S32 idx = 0; idx < count; idx++)
648 {
649 xBase* b = zVolumeGetVolume(idx);
650
651 zLightSetVolume((zVolume*)b);
652
653 zSceneSet(b, base_idx);
654 zSceneObjHashtableAdd(b->id, b);
655
656 base_idx++;
657 }
658 }
659
660 return base_idx;
661}
662
663static U32 zSceneInitFunc_LobMaster(zScene* s, zSceneObjectInstanceDesc* desc, U32 base_idx)
664{

Callers

nothing calls this directly

Calls 5

zVolumeGetVolumeFunction · 0.85
zSceneSetFunction · 0.85
zVolumeInitFunction · 0.70
zLightSetVolumeFunction · 0.70
zSceneObjHashtableAddFunction · 0.70

Tested by

no test coverage detected