tibia-client/src/tibiadat.h

29 lines
533 B
C
Raw Normal View History

2011-08-02 04:07:19 +02:00
#ifndef TIBIADAT_H
#define TIBIADAT_H
#include <global.h>
2011-08-11 07:52:30 +02:00
#include "item.h"
2011-08-02 04:07:19 +02:00
class TibiaDat
{
public:
bool load(const std::string& filename);
2011-08-11 07:52:30 +02:00
ItemAttributes *getItemAttributes(uint16 id);
2011-08-02 04:07:19 +02:00
uint16 getGroupCount(int i) { return m_groupCount[i]; }
uint32 getSignature() { return m_signature; }
uint16 getTotalCount() { return m_totalCount; }
private:
uint32 m_signature, m_totalCount;
uint16 m_groupCount[4];
2011-08-11 07:52:30 +02:00
ItemAttributes **m_itemsAttributes;
2011-08-02 04:07:19 +02:00
};
extern TibiaDat g_tibiaDat;
#endif // TIBIADAT_H