forked from derandark/DungeonViewerAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Environment.h
68 lines (47 loc) · 1.56 KB
/
Environment.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once
#include "ObjCache.h"
#include "Vertex.h"
class CSurfaceTriStrips;
class CPolygon;
class BSPTREE;
class CCellStruct
{
public:
CCellStruct();
~CCellStruct();
void Destroy();
BOOL UnPack(BYTE **ppData, ULONG iSize);
CPolygon* get_portal(WORD index);
BOOL point_in_cell(const Vector& point);
// private:
DWORD m_Index; // 0x00
CVertexArray m_VertexArray; // 0x04
DWORD m_14; // 0x14
CPolygon** m_18; // 0x18
DWORD m_1C; // 0x1C
CSurfaceTriStrips* m_20; // 0x20
DWORD m_24; // 0x24
CPolygon* m_28; // 0x28
BSPTREE* m_2C; // 0x2C - Used for drawing
DWORD m_30; // 0x30
CPolygon* m_34; // 0x34
BSPTREE* m_38; // 0x38
BSPTREE* m_3C; // 0x3C
// size 0x40
};
class CEnvironment : public DBObj
{
public:
CEnvironment();
~CEnvironment();
static DBObj* Allocator();
static void Destroyer(DBObj*);
static CEnvironment* Get(DWORD ID);
static void Release(CEnvironment *);
void Destroy();
BOOL UnPack(BYTE **ppData, ULONG iSize);
CCellStruct* get_cellstruct(DWORD index);
private:
DWORD m_StructCount; // 0x1C / 0x28
CCellStruct* m_Structs; // 0x20 / 0x2C
};