summaryrefslogtreecommitdiff
path: root/src/d/lyt/d_structd.cpp
blob: 40ee0a885efd112fabf60e923fc704adb7bc99e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "d/lyt/d_structd.h"

namespace d2d {

dLytStructDList::dLytStructDList() {
    field_0x18 = true;
    sInstance = this;
}

dLytStructDList *dLytStructDList::create(EGG::Heap *heap) {
    return new (heap) dLytStructDList();
}

void dLytStructDList::appendToList1(dLytStructC *other) {
    mList1.insert(other);
}

void dLytStructDList::removeFromList1(dLytStructC *other) {
    mList1.remove(other);
}

void dLytStructDList::appendToList2(dLytStructD *other) {
    mList2.insert(other);
}

void dLytStructDList::removeFromList2(dLytStructD *other) {
    mList2.remove(other);
}

dLytStructD::~dLytStructD() {
    delete[] field_0x1C;
    field_0x1C = nullptr;
}

} // namespace d2d