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
6enum
7{
8#define MAPBUG(constname, string) constname,
9#include "mapbugs_list.h"
10#undef MAPBUG
12};
13
14enum
15{
19};
20
22{
23 friend CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256);
24 void *m_pData;
25 unsigned int m_Extra;
26
27public:
28 bool Contains(int Bug) const;
29 int Update(const char *pBug);
30 void Dump() const;
31};
32
33CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256);
34#endif // GAME_MAPBUGS_H
Definition: mapbugs.h:22
void * m_pData
Definition: mapbugs.h:24
void Dump() const
Definition: mapbugs.cpp:96
unsigned int m_Extra
Definition: mapbugs.h:25
int Update(const char *pBug)
Definition: mapbugs.cpp:75
friend CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256)
Definition: mapbugs.cpp:48
bool Contains(int Bug) const
Definition: mapbugs.cpp:65
@ MAPBUGUPDATE_NOTFOUND
Definition: mapbugs.h:17
@ MAPBUGUPDATE_OK
Definition: mapbugs.h:16
@ MAPBUGUPDATE_OVERRIDDEN
Definition: mapbugs.h:18
CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256)
Definition: mapbugs.cpp:48
@ NUM_BUGS
Definition: mapbugs.h:11
Definition: hash.h:15