mirror of
https://github.com/edubart/otclient.git
synced 2025-05-02 10:39:21 +02:00
32 lines
696 B
C++
32 lines
696 B
C++
#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
|