mirror of
https://github.com/motajs/template.git
synced 2026-11-01 06:04:30 +08:00
feat: 地形通行性判断
This commit is contained in:
1 parent
eb34d63e96
commit
0508dfb9e4
9 files changed
+288
-20
No files matched your search
@@ -247,6 +247,8 @@ export interface IObjectMover<T extends IObjectMovable> extends IHookable<
|
||||
readonly currAnimDir: ObjectAnimDirection;
|
||||
/** 当前移动速度,单位毫秒 */
|
||||
readonly currentSpeed: number;
|
||||
/** 朝向信息对象 */
|
||||
readonly faceHandler: IFaceHandler<FaceDirection>;
|
||||
|
||||
/**
|
||||
* 立刻设置移动对象的位置
|
||||
@@ -367,8 +369,7 @@ export abstract class ObjectMover<T extends IObjectMovable>
|
||||
/** 是否调用了 `IMoverController.stop` 接口 */
|
||||
private shouldStop: boolean = false;
|
||||
|
||||
/** 朝向处理 */
|
||||
private readonly faceHandler: IFaceHandler<FaceDirection>;
|
||||
readonly faceHandler: IFaceHandler<FaceDirection>;
|
||||
|
||||
constructor(faceHandler: IFaceHandler<FaceDirection>) {
|
||||
super();
|
||||
|
||||
Reference in new issue
Block a user