DDraceNetwork Docs
mapbugs.h
Go to the documentation of this file.
1
#ifndef GAME_MAPBUGS_H
2
#define GAME_MAPBUGS_H
3
4
#include <
base/hash.h
>
5
6
enum
7
{
8
#define MAPBUG(constname, string) constname,
9
#include "
mapbugs_list.h
"
10
#undef MAPBUG
11
NUM_BUGS
,
12
};
13
14
enum class
EMapBugUpdate
15
{
16
OK
,
17
NOTFOUND
,
18
OVERRIDDEN
,
19
};
20
21
class
CMapBugs
22
{
23
void
*
m_pData
=
nullptr
;
24
unsigned
int
m_Extra
= 0;
25
26
public
:
27
static
CMapBugs
Create
(
const
char
*pName,
int
Size,
SHA256_DIGEST
Sha256);
28
bool
Contains
(
int
Bug)
const
;
29
EMapBugUpdate
Update
(
const
char
*pBug);
30
void
Dump
()
const
;
31
};
32
33
#endif
// GAME_MAPBUGS_H
CMapBugs
Definition:
mapbugs.h:22
CMapBugs::m_pData
void * m_pData
Definition:
mapbugs.h:23
CMapBugs::Dump
void Dump() const
Definition:
mapbugs.cpp:96
CMapBugs::m_Extra
unsigned int m_Extra
Definition:
mapbugs.h:24
CMapBugs::Create
static CMapBugs Create(const char *pName, int Size, SHA256_DIGEST Sha256)
Definition:
mapbugs.cpp:48
CMapBugs::Contains
bool Contains(int Bug) const
Definition:
mapbugs.cpp:65
CMapBugs::Update
EMapBugUpdate Update(const char *pBug)
Definition:
mapbugs.cpp:75
hash.h
NUM_BUGS
@ NUM_BUGS
Definition:
mapbugs.h:11
EMapBugUpdate
EMapBugUpdate
Definition:
mapbugs.h:15
EMapBugUpdate::OVERRIDDEN
@ OVERRIDDEN
EMapBugUpdate::OK
@ OK
EMapBugUpdate::NOTFOUND
@ NOTFOUND
mapbugs_list.h
SHA256_DIGEST
Definition:
hash.h:15
src
game
mapbugs.h
Generated by
1.9.4