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

Function zCamMarkerInit

src/SB/Game/zCamMarker.cpp:3–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "zCamMarker.h"
2
3void zCamMarkerInit(xBase* b, xCamAsset* asset)
4{
5 xBaseInit(b, asset);
6
7 // xCamAsset, like most of the asset types, extends from xBaseAsset
8 // they all have a xLinkAsset array at the end (or near the end) of their data
9 // in xCamAsset's case, the xLinkAsset array appears right after it
10 if (b->linkCount)
11 {
12 b->link = (xLinkAsset*)(asset + 1);
13 }
14
15 b->eventFunc = (xBaseEventCB)zCamMarkerEventCB;
16 ((zCamMarker*)b)->asset = asset;
17}
18
19void zCamMarkerSave(zCamMarker* m, xSerial* s)
20{

Callers 1

zSceneInitFunc_CameraFunction · 0.85

Calls 1

xBaseInitFunction · 0.85

Tested by

no test coverage detected