mirror of
https://github.com/motajs/template.git
synced 2026-11-15 08:14:30 +08:00
feat: Adding should replay flag
This commit is contained in:
1 parent
7743795948
commit
d74cc35c8e
16 files changed
+86
-186
No files matched your search
@@ -4,7 +4,8 @@ import {
|
||||
IDataCommon,
|
||||
IDataCommonExtended,
|
||||
ISaveableContent,
|
||||
ITileRawData
|
||||
ITileRawData,
|
||||
shouldReplay
|
||||
} from '@user/data-common';
|
||||
import { LayerEventView } from './eventView';
|
||||
import {
|
||||
@@ -52,6 +53,7 @@ export abstract class MapTileBase<TSave extends IMapBlockSaveBase>
|
||||
eventView.markPure();
|
||||
}
|
||||
|
||||
@shouldReplay('Setting map tile face direction should be replayed.')
|
||||
setFaceDirection(direction: FaceDirection): number {
|
||||
const cur = this.num();
|
||||
const next = this.layer.faceBinder.getFaceOf(cur, direction);
|
||||
|
||||
Reference in new issue
Block a user