Files
m2dev-server-src/src/game/map_location.h
2025-08-23 14:00:40 +02:00

21 lines
480 B
C++

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