You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
696 B
32 lines
696 B
#ifndef TIBIADAT_H
|
|
#define TIBIADAT_H
|
|
|
|
#include <global.h>
|
|
#include "thing.h"
|
|
|
|
class TibiaDat
|
|
{
|
|
public:
|
|
bool load(const std::string& filename);
|
|
|
|
ThingAttributes *getItemAttributes(uint16 id);
|
|
ThingAttributes *getCreatureAttributes(uint16 id);
|
|
ThingAttributes *getEffectAttributes(uint16 id);
|
|
ThingAttributes *getShotAttributes(uint16 id);
|
|
|
|
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];
|
|
|
|
ThingAttributes **m_thingsAttributes;
|
|
};
|
|
|
|
extern TibiaDat g_tibiaDat;
|
|
|
|
#endif // TIBIADAT_H
|