refactor: data-common/common

This commit is contained in:
AncTe committed 2026-09-23 16:04:50 +08:00
1 parent 9fb04e3129
commit 1fb92c3976
12 files changed
+51 -233

No files matched your search

+1
View File
@@ -270,6 +270,7 @@
"189": "Cannot flatten autotile since it cannot be splitted evenly. Autotile width: $1, frames: $2.",
"190": "Cannot flatten autotile since its width or height cannot be divided evenly. Autotile frame size: [$1,$2].",
"191": "Cannot cache autotile since no its frame or type data stored.",
"192": "A FaceGroup.Dir8 face handler registration is expected.",
"1001": "Event(setBlock): Unknown tile '$1' when setting block."
}
}
+7
View File
@@ -185,6 +185,13 @@ export interface IFaceHandler<T extends number> {
*/
next(dir: number, anticlockwise?: boolean): T;
/**
* 获取对应于指定偏移量的朝向方向。如果有多个符合要求,那么会返回其中一个符合要求的朝向
* @param dx 横坐标移动偏移量
* @param dy 纵坐标移动偏移量
*/
dirOf(dx: number, dy: number): T;
/**
* 迭代本组支持的所有朝向,包含 `Unknown`
*/