refactor: 调整录像命名

This commit is contained in:
AncTe committed 2026-09-16 21:51:19 +08:00
1 parent 513a9c354c
commit 49aacb087a
11 files changed
+171 -203

No files matched your search

+2 -9
View File
@@ -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);
}