📄 mapinfo.cpp
字号:
// MapInfo.cpp: implementation of the CMapInfo class.
//
//////////////////////////////////////////////////////////////////////
#include "..\stdAfx.h"
#include "MapInfo.h"
t_MapInfo MapInfo[MAX_MAP_];
t_MapInfo* GetMapInfoByMapName(const char *szMapName)
{ //< CSD-030506
for (int i = 0; i< MAX_MAP_; ++i)
{
if (!stricmp(MapInfo[i].mapfile, szMapName))
{
return &MapInfo[i];
}
}
return NULL;
} //> CSD-030506
t_MapInfo* GetMapInfoByMapPort(int nPort)
{ //< CSD-030506
for (int i = 0; i< MAX_MAP_; ++i)
{
if (MapInfo[i].port == nPort)
{
return &MapInfo[i];
}
}
return NULL;
} //> CSD-030506
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -