56 lines
831 B
C++
56 lines
831 B
C++
|
|
#ifndef _SCreatureEnhance_h_
|
|
#define _SCreatureEnhance_h_
|
|
|
|
//#include <vector>
|
|
|
|
#pragma pack(push)
|
|
#pragma pack( 1 )
|
|
|
|
struct sCreatureEnhanceDBInfo
|
|
{
|
|
short enhance_level;
|
|
float stat_amplify;
|
|
short card_durability;
|
|
short slot_amount;
|
|
short jp_addition;
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
class SCreatureEnhanceDB
|
|
{
|
|
public:
|
|
SCreatureEnhanceDB();
|
|
~SCreatureEnhanceDB();
|
|
int getEnhanceLevel(unsigned int enhance) const;
|
|
float getStatAmplify(unsigned int enhance) const;
|
|
int getCardDurability(unsigned int enhance) const;
|
|
int getSlotAmount(unsigned int enhance) const;
|
|
int getJpAddition(unsigned int enhance) const;
|
|
|
|
private:
|
|
void Init();
|
|
void Destroy();
|
|
void Load();
|
|
|
|
private:
|
|
std::vector<sCreatureEnhanceDBInfo> m_db;
|
|
|
|
public:
|
|
static SCreatureEnhanceDB* m_pThis;
|
|
};
|
|
|
|
SCreatureEnhanceDB& GetCreatureEnhanceDB();
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|