Appearance
LhJiedianGetRecentlyPoint指定节点txt文件,传入当前坐标,返回最近节点步数。
LhJiedianGetRecentlyPoint
注意:在生命周期内仅会读入一次,如果更新了txt文件内容,请重启程序。
LONG LhJiedianGetRecentlyPoint(filePath, currentX, currentY)
filePath: txt文本文件路径
filePath
currentX: 当前x坐标。
currentX
currentY: 当前y坐标。
currentY
成功返回第几步(节点)
-1: 读入节点txt文件失败