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 |
15 | { |
16 | MAPBUGUPDATE_OK, |
17 | MAPBUGUPDATE_NOTFOUND, |
18 | MAPBUGUPDATE_OVERRIDDEN, |
19 | }; |
20 | |
21 | class CMapBugs |
22 | { |
23 | friend CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256); |
24 | void *m_pData; |
25 | unsigned int ; |
26 | |
27 | public: |
28 | bool Contains(int Bug) const; |
29 | int Update(const char *pBug); |
30 | void Dump() const; |
31 | }; |
32 | |
33 | CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256); |
34 | #endif // GAME_MAPBUGS_H |
35 | |