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

Function zSceneInitFunc_Surface

src/SB/Game/zScene.cpp:585–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585static U32 zSceneInitFunc_Surface(zScene* s, zSceneObjectInstanceDesc* desc, U32 base_idx)
586{
587 S32 count;
588
589 count = s->baseCount[desc->baseType];
590
591 if (count)
592 {
593 s->baseList[desc->baseType] = xSurfaceGetByIdx(0);
594
595 for (S32 idx = 0; idx < count; idx++)
596 {
597 xBase* b = xSurfaceGetByIdx(idx);
598
599 zSceneSet(b, base_idx);
600 zSceneObjHashtableAdd(b->id, b);
601
602 base_idx++;
603 }
604 }
605
606 return base_idx;
607}
608
609static U32 zSceneInitFunc_Gust(zScene* s, zSceneObjectInstanceDesc* desc, U32 base_idx)
610{

Callers

nothing calls this directly

Calls 3

xSurfaceGetByIdxFunction · 0.85
zSceneSetFunction · 0.85
zSceneObjHashtableAddFunction · 0.70

Tested by

no test coverage detected