base init

This commit is contained in:
d1str4ught
2025-08-18 00:36:52 +02:00
parent cff3015742
commit 4e679320a3
527 changed files with 199969 additions and 0 deletions

20
src/game/map_location.h Normal file
View File

@@ -0,0 +1,20 @@
#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;
};