mirror of
https://github.com/motajs/template.git
synced 2026-11-11 21:44:31 +08:00
refactor: 将 Layer 0 单独放到一个包
This commit is contained in:
1 parent
bf781c5ee8
commit
8f4c4b7df2
48 files changed
+159
-97
No files matched your search
@@ -4,8 +4,9 @@ import {
|
||||
ObjectMover,
|
||||
ObjectMoveStep,
|
||||
ObjectMoveStepType
|
||||
} from '../common';
|
||||
} from '@user/data-common';
|
||||
import { IDynamicTile } from './types';
|
||||
import { DYNAMIC_MOVER_FACE } from '../shared';
|
||||
|
||||
//#region 动态图块
|
||||
|
||||
@@ -16,7 +17,8 @@ const enum DynamicMoveCode {
|
||||
|
||||
export class DynamicTileMover extends ObjectMover<IDynamicTile> {
|
||||
constructor(public readonly tile: IDynamicTile) {
|
||||
super();
|
||||
const face = tile.state.faceManager;
|
||||
super(face.get(DYNAMIC_MOVER_FACE)!);
|
||||
}
|
||||
|
||||
protected onMoveStart(): Promise<void> {
|
||||
|
||||
Reference in new issue
Block a user