forked from HaloMods/SparkEdit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWeaponHud.cpp
49 lines (38 loc) · 1012 Bytes
/
WeaponHud.cpp
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
// WeaponHud.cpp: implementation of the CWeaponHud class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "sparkedit.h"
#include "WeaponHud.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CWeaponHud::CWeaponHud()
{
m_pMapFile = NULL;
m_Magic = 0;
}
CWeaponHud::~CWeaponHud()
{
}
void CWeaponHud::Initialize(CFile *pMapFile, UINT magic)
{
m_pMapFile = pMapFile;
m_Magic = magic;
}
void CWeaponHud::LoadWeaponHud(INDEX_ITEM *pItem)
{
CString name;
INDEX_ITEM *pNext;
int size;
pNext = pItem + 1;
size = pNext->offset - pItem->offset;
name = CheckForReference(m_pMapFile, pItem->stringoffset, m_Magic);
printf("\n\n--------- %s\n", name);
AnalyzeFileSection(m_pMapFile, pItem->offset, size, m_Magic, 0);
}