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

+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`
*/