|

楼主 |
发表于 2025-5-20 16:23:29
|
显示全部楼层
API参考
我具体实现的API
List/Insert/Remove系列
维护原始数据
- public QueryReuslt? APIQueryPathAny(List from, List target, Context context, MapperOptions options)
复制代码 多个起点和多个终点之间的路径规划,实际用的最多的是1对多
- public QueryReuslt? APIQueryPathAll(string start, List target, Context context, MapperOptions options)
复制代码 无顺序房间的动态规划,核心,动态查询房间后,通过多次单步模拟行走的方式,计算出遍历路径
- public QueryReuslt? APIQueryPathOrdered(string start, List target, Context context, MapperOptions options)
复制代码 有顺序的动态规划,通过多次单步模拟行走计算
- public List APIQueryRegionRooms(string key)
复制代码 查询区域房间,配合APIQueryPathAll使用
- public List APIDilate(List src, int iterations, Context context, MapperOptions options)
复制代码 膨胀房间,具体用途,比如获取扬州的所有房间,然后npc不是会跑么,膨胀3格遍历
- public string APITrackExit(string start, string command, Context context, MapperOptions options)
复制代码 跟踪出口,看会去哪里
- public List APISearchRooms(RoomFilter filter)
复制代码 根据过滤器,搜索房间
- public List APIFilterRooms(List src, RoomFilter filter)
复制代码 在限定的房间里过滤房间,比如只找扬州的非安全房间
- public void APITakeSnapshot(string key, string type, string value, string group)
复制代码 拍摄快照,扫街用
- public void APITraceLocation(string key, string location)
复制代码 记录足迹,扫街用
- public void APITagRoom(string key, string tag, int value)
复制代码 给房间打标记,扫街用
- public void APISetRoomData(string roomkey, string datakey, string datavalue)
复制代码 设置房间数据,扫街用
- public void APIGroupRoom(string key, string group)
复制代码 设置房间分组,扫街用
|
|