mirror of
https://github.com/motajs/template.git
synced 2026-11-08 19:24:31 +08:00
refactor: 调整录像命名
This commit is contained in:
1 parent
513a9c354c
commit
49aacb087a
11 files changed
+171
-203
No files matched your search
@@ -1,9 +1,5 @@
|
||||
import { ITileLocator, logger } from '@motajs/common';
|
||||
import {
|
||||
IObjectMovable,
|
||||
IObjectMover,
|
||||
ReplayCommandCode
|
||||
} from '@user/data-common';
|
||||
import { IObjectMovable, IObjectMover, ReplayCode } from '@user/data-common';
|
||||
import { HeroMover, IStateBase } from '@user/data-base';
|
||||
import { isNil } from 'lodash-es';
|
||||
import { PathfindingFinder } from './finder';
|
||||
@@ -103,10 +99,7 @@ export class PathfindingSystem implements IPathfindingSystem {
|
||||
// TODO:后续需要调整设计方式,最好不用 instanceof
|
||||
if (this.mover instanceof HeroMover) {
|
||||
const replay = this.state.replaySystem;
|
||||
replay.route.add(ReplayCommandCode.Teleport, [
|
||||
target.x,
|
||||
target.y
|
||||
]);
|
||||
replay.route.add(ReplayCode.Teleport, [target.x, target.y]);
|
||||
}
|
||||
return this.startMove(path, true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user