mirror of
https://github.com/motajs/template.git
synced 2026-11-11 21:44:31 +08:00
refactor: ReplaySystem.route -> ReplaySystem.array,修复 disabled 标记在 setReplayArray 中清零可能导致意外记录的问题
This commit is contained in:
1 parent
3a3a6ac82d
commit
a2a8e6ec35
19 files changed
+96
-87
No files matched your search
@@ -99,7 +99,7 @@ export class PathfindingSystem implements IPathfindingSystem {
|
||||
// TODO:后续需要调整设计方式,最好不用 instanceof
|
||||
if (this.mover instanceof HeroMover) {
|
||||
const replay = this.state.replaySystem;
|
||||
replay.route.add(ReplayCode.Teleport, [target.x, target.y]);
|
||||
replay.array.add(ReplayCode.Teleport, [target.x, target.y]);
|
||||
}
|
||||
return this.startMove(path, true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user