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

Function zEGenerator_Setup

src/SB/Game/zEGenerator.cpp:52–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void zEGenerator_Setup(zEGenerator* egen, xScene* sc)
53{
54 zEntSetup(egen);
55 egen->num_dsts = 0;
56 for (S32 i = 0; i < egen->linkCount; i++)
57 {
58 xLinkAsset* la = (xLinkAsset*)&egen->link[i];
59 xBase* b = (xBase*)zSceneFindObject(la->dstAssetID);
60 if (b != NULL && la->dstEvent == 0xc0)
61 {
62 if (b->baseType == eBaseTypeMovePoint)
63 {
64 egen->num_dsts++;
65 }
66 else if (b->baseFlags & 0x20)
67 {
68 egen->num_dsts++;
69 }
70 }
71 }
72}
73
74void zEGenerator_Save(zEGenerator* ent, xSerial* s)
75{

Callers 1

zSceneSetupFunction · 0.70

Calls 2

zEntSetupFunction · 0.85
zSceneFindObjectFunction · 0.85

Tested by

no test coverage detected