refactor: 修复所有问题

This commit is contained in:
AncTe committed 2025-03-09 22:13:53 +08:00
1 parent 74f0386fd9
commit 5c520e3d52
68 files changed
+1230 -1077

No files matched your search

+10 -1
View File
@@ -218,7 +218,7 @@ interface Control {
/**
* 脚本编辑的control函数列表
*/
readonly controlData: ControlData;
readonly controldata: ControlData;
/**
* @deprecated
@@ -1169,6 +1169,15 @@ interface Control {
_replay_SL(): void;
_replay_viewMap(): void;
_replay_error(action: string): void;
_setAutomaticRoute_isMoving(x: number, y: number): boolean;
_setAutomaticRoute_isTurning(x: number, y: number, postfix: any): boolean;
_setAutomaticRoute_clickMoveDirectly(
x: number,
y: number,
postfix: any
): boolean;
_setAutomaticRoute_drawRoute(step: any): void;
_setAutomaticRoute_setAutoSteps(step: any): void;
}
declare const control: new () => Control;
+14
View File
@@ -812,6 +812,20 @@ interface Events extends EventData {
__action_getLoc(data: any, x?: number, y?: number, prefix?: any): any;
_changeFloor_beforeChange(info: any, callback: () => void): void;
_action_moveAction(data: any, x: number, y: number, prefix: any): void;
_openDoor_check(
block: Block,
x: number,
y: number,
needKey: boolean
): boolean;
_openDoor_animate(
block: Block,
x: number,
y: number,
callback?: () => void
): void;
}
declare const events: new () => Events;