SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
BothDirList.cpp
1#include "Game/Util.hpp"
2
3namespace MR {
4 BothDirPtrLink::BothDirPtrLink(void *pLink) :
5 mPtr(pLink), mPtrList(0), _8(0), _C(0) {
6
7 }
8
9 BothDirPtrLink::~BothDirPtrLink() {
10 if (mPtrList) {
11 mPtrList->remove(this);
12 }
13 }
14
15 BothDirPtrList::BothDirPtrList(bool doInitialize) {
16 if (doInitialize) {
17 initiate();
18 }
19 }
20
21 void BothDirPtrList::initiate() {
22 _0 = 0;
23 _4 = 0;
24 _8 = 0;
25 }
26
27 void BothDirPtrList::setFirst(MR::BothDirPtrLink *pFirst) {
28 pFirst->mPtrList = this;
29 pFirst->_8 = 0;
30 pFirst->_C = 0;
31 _4 = pFirst;
32 _0 = pFirst;
33 _8 = 1;
34 }
35};