mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-13 17:54:30 +08:00
循环式地图
This commit is contained in:
1 parent
479cc6fe0f
commit
ae3d62211e
17 files changed
+664
-961
No files matched your search
Vendored
+3
-1
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+10
@@ -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[]>;
|
||||
|
||||
|
||||
Vendored
+3
-3
@@ -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>>;
|
||||
|
||||
/**
|
||||
* 地图伤害
|
||||
|
||||
Reference in new issue
Block a user