server/game/src/map_location.h
2022-03-05 12:44:06 +02:00

21 lines
450 B
C++

#include "../../common/stl.h"
class CMapLocation : public singleton<CMapLocation>
{
public:
typedef struct SLocation
{
long addr;
WORD port;
} TLocation;
bool Get(long x, long y, long & lMapIndex, long & lAddr, WORD & wPort);
bool Get(int iIndex, long & lAddr, WORD & wPort);
void Insert(long lIndex, const char * c_pszHost, WORD wPort);
protected:
std::map<long, TLocation> m_map_address;
};