forked from metin2/server
25 lines
614 B
C++
25 lines
614 B
C++
// vim:ts=4 sw=4
|
|
#ifndef __INC_METIN_II_ITEM_ID_RANGE_MANAGER_H__
|
|
#define __INC_METIN_II_ITEM_ID_RANGE_MANAGER_H__
|
|
|
|
class CItemIDRangeManager : public singleton<CItemIDRangeManager>
|
|
{
|
|
private :
|
|
const static DWORD cs_dwMaxItemID = 4290000000UL;
|
|
const static DWORD cs_dwMinimumRange = 10000000UL;
|
|
const static DWORD cs_dwMinimumRemainCount = 10000UL;
|
|
|
|
std::list<TItemIDRangeTable> m_listData;
|
|
|
|
public :
|
|
CItemIDRangeManager();
|
|
|
|
void Build();
|
|
bool BuildRange(DWORD dwMin, DWORD dwMax, TItemIDRangeTable& range);
|
|
void UpdateRange(DWORD dwMin, DWORD dwMax);
|
|
|
|
TItemIDRangeTable GetRange();
|
|
};
|
|
|
|
#endif
|