| 1 | #include "zCamMarker.h" |
| 2 | |
| 3 | void 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 | |
| 19 | void zCamMarkerSave(zCamMarker* m, xSerial* s) |
| 20 | { |
no test coverage detected