feat: Adding should replay flag

This commit is contained in:
AncTe committed 2026-09-23 13:09:43 +08:00
1 parent 7743795948
commit d74cc35c8e
16 files changed
+86 -186

No files matched your search

+3 -1
View File
@@ -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);