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

Function xGroupSetup

src/SB/Core/x/xGroup.cpp:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void xGroupSetup(xGroup* g)
47{
48 if ((g->flg_group & 1) == 0)
49 {
50 U32 numItems = xGroupGetCount(g);
51 U32 i = 0;
52 U32 ind = 0;
53 while (i < numItems)
54 {
55 xBase* item = xGroupFindItemPtr(g, i);
56 i++;
57 *(g->item + ind) = item;
58 ind++;
59 }
60 g->flg_group |= 1;
61 }
62}
63
64void xGroupSave(xGroup* ent, xSerial* s)
65{

Callers 2

xGroupGetItemPtrFunction · 0.70
zSceneSetupFunction · 0.50

Calls 2

xGroupGetCountFunction · 0.85
xGroupFindItemPtrFunction · 0.85

Tested by

no test coverage detected