mirror of
https://github.com/therealKyp/Earth-and-Beyond-server
synced 2026-08-13 22:23:03 -04:00
44 lines
649 B
C++
44 lines
649 B
C++
// BuffDatabaseSQL.h
|
|
|
|
#ifndef _BUFF_DATABASE_SQL_H_INCLUDED_
|
|
#define _BUFF_DATABASE_SQL_H_INCLUDED_
|
|
|
|
#ifdef WIN32
|
|
#pragma warning(disable:4786)
|
|
#endif
|
|
|
|
#include <map>
|
|
|
|
|
|
struct BuffData
|
|
{
|
|
int EffectID;
|
|
int EffectLength;
|
|
};
|
|
|
|
typedef std::map<const char *, BuffData> BuffList;
|
|
|
|
class BuffContent
|
|
{
|
|
// Constructor/Destructor
|
|
public:
|
|
BuffContent();
|
|
virtual ~BuffContent();
|
|
|
|
// Public Methods
|
|
public:
|
|
bool LoadBuffContent();
|
|
long GetBuffEffectTime(char *buff);
|
|
long GetBuffEffect(char *buff);
|
|
|
|
|
|
// Private Member Attributes
|
|
private:
|
|
BuffList m_BuffData;
|
|
bool m_updating;
|
|
|
|
};
|
|
|
|
|
|
#endif // _BUFF_DATABASE_SQL_H_INCLUDED_
|
|
|