mirror of
https://github.com/motajs/template.git
synced 2026-11-20 03:14:30 +08:00
refactor: 寻路系统改进
This commit is contained in:
1 parent
50b8b3e651
commit
4aaea68b65
17 files changed
+251
-323
No files matched your search
@@ -855,13 +855,13 @@ export interface IPassCheckHandler extends IDataCommonExtended {
|
||||
readonly nextLoc: ITileLocator;
|
||||
/** 移动方向 */
|
||||
readonly direction: FaceDirection;
|
||||
/** 当前楼层 id */
|
||||
readonly floorId: string | undefined;
|
||||
/** 地图对象 */
|
||||
readonly map: IGameMap | null;
|
||||
}
|
||||
|
||||
export interface IPassPredicate {
|
||||
/**
|
||||
* 检查在指定楼层中,能否从某一个移动入某一格
|
||||
* 检查在指定楼层中,能否从某一个移动入某一格,若会产生撞击,则此项应返回 `false`
|
||||
* @param handler 通行性检查信息对象
|
||||
*/
|
||||
canPass(handler: IPassCheckHandler): boolean;
|
||||
|
||||
Reference in new issue
Block a user