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

Function zGustInit

src/SB/Game/zGust.cpp:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20S32 zGustEventCB(xBase* from, xBase* to, U32 toEvent, const float* toParam, xBase* b);
21
22static void zGustInit(zGust* g, zGustAsset* a)
23{
24 xBaseInit(g, a);
25 g->eventFunc = zGustEventCB;
26 g->asset = a;
27 g->flags = a->flags;
28
29 if (g->linkCount)
30 {
31 g->link = (xLinkAsset*)&g->asset[1];
32 }
33 else
34 {
35 g->link = NULL;
36 }
37
38 g->debris_timer = 0.15f;
39}
40
41static void zGustSetup(zGust* g)
42{

Callers 1

zSceneInitFunc_GustFunction · 0.70

Calls 3

xBaseInitFunction · 0.85
xSTAssetCountByTypeFunction · 0.50
xSTFindAssetByTypeFunction · 0.50

Tested by

no test coverage detected