mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
6ff53358d3
This should path the way to remove it altogether in the future.
35 lines
585 B
C++
35 lines
585 B
C++
#ifndef GAME_MAPBUGS_H
|
|
#define GAME_MAPBUGS_H
|
|
|
|
#include <base/hash.h>
|
|
|
|
enum
|
|
{
|
|
#define MAPBUG(constname, string) constname,
|
|
#include "mapbugs_list.h"
|
|
#undef MAPBUG
|
|
NUM_BUGS,
|
|
};
|
|
|
|
enum
|
|
{
|
|
MAPBUGUPDATE_OK,
|
|
MAPBUGUPDATE_NOTFOUND,
|
|
MAPBUGUPDATE_OVERRIDDEN,
|
|
};
|
|
|
|
class CMapBugs
|
|
{
|
|
friend CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256);
|
|
void *m_pData;
|
|
unsigned int m_Extra;
|
|
|
|
public:
|
|
bool Contains(int Bug) const;
|
|
int Update(const char *pBug);
|
|
void Dump() const;
|
|
};
|
|
|
|
CMapBugs GetMapBugs(const char *pName, int Size, SHA256_DIGEST Sha256);
|
|
#endif // GAME_MAPBUGS_H
|