循环式地图

This commit is contained in:
AncTe committed 2023-01-04 16:23:26 +08:00
1 parent 479cc6fe0f
commit ae3d62211e
17 files changed
+664 -961

No files matched your search

+3 -1
View File
@@ -1170,12 +1170,14 @@ interface Maps {
* @param x 横坐标
* @param y 纵坐标
* @param floorId 地图id,不填视为当前地图
* @param noredraw 是否不重绘地图
*/
setBlock(
number: AllIds | AllNumbers | `${AllNumbers}`,
x: number,
y: number,
floorId?: FloorIds
floorId?: FloorIds,
noredraw?: boolean
): void;
/**
+10
View File
@@ -120,6 +120,13 @@ interface PluginUtils {
* @param isStart 是否要开始修剪录像
*/
autoFixRouteBoss(isStart?: boolean);
/**
* 滑动数组
* @param arr 数组
* @param delta 偏移量,正数表示向右滑动,负数表示向左滑动
*/
slide<T>(arr: T[], delta: number): T[];
}
interface PluginUis {
@@ -165,6 +172,9 @@ interface PluginUis {
/** 楼传界面是否打开 */
readonly flyOpened: Ref<boolean>;
/** 是否展示标记的怪物 */
readonly showMarkedEnemy: Ref<boolean>;
/** ui栈 */
readonly uiStack: Ref<Component[]>;
+3 -3
View File
@@ -618,17 +618,17 @@ interface InitGameStatus {
/**
* 背景图块
*/
bgmaps: Record<string, number[][]>;
bgmaps: Record<FloorIds, number[][]>;
/**
* 前景图块
*/
fgmaps: Record<string, number[][]>;
fgmaps: Record<FloorIds, number[][]>;
/**
* 以坐标列举的图块
*/
mapBlockObjs: Record<string, Record<LocString, Block>>;
mapBlockObjs: Record<FloorIds, Record<LocString, Block>>;
/**
* 地图伤害