2018-03-24 13:00:41 +00:00
|
|
|
#ifndef GAME_MAPBUGS_H
|
|
|
|
#define GAME_MAPBUGS_H
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2018-05-01 10:38:33 +00:00
|
|
|
#define MAPBUG(constname, string) constname,
|
|
|
|
#include "mapbugs_list.h"
|
|
|
|
#undef MAPBUG
|
2018-03-24 13:00:41 +00:00
|
|
|
NUM_BUGS,
|
|
|
|
};
|
|
|
|
|
2018-05-01 10:38:33 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAPBUGUPDATE_OK,
|
|
|
|
MAPBUGUPDATE_NOTFOUND,
|
|
|
|
MAPBUGUPDATE_OVERRIDDEN,
|
|
|
|
};
|
|
|
|
|
2018-03-24 13:00:41 +00:00
|
|
|
class CMapBugs
|
|
|
|
{
|
|
|
|
friend CMapBugs GetMapBugs(const char *pName, int Size, int Crc);
|
|
|
|
void *m_pData;
|
2018-05-01 10:38:33 +00:00
|
|
|
unsigned int m_Extra;
|
2018-03-24 13:00:41 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
bool Contains(int Bug) const;
|
2018-05-01 10:38:33 +00:00
|
|
|
int Update(const char *pBug);
|
2018-03-24 13:00:41 +00:00
|
|
|
void Dump() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
CMapBugs GetMapBugs(const char *pName, int Size, int Crc);
|
|
|
|
#endif // GAME_MAPBUGS_H
|