This commit is contained in:
AncTe committed 2023-01-01 22:02:58 +08:00
1 parent 71a4551004
commit b3602d3f21
18 files changed
+1040 -36

No files matched your search

+2
View File
@@ -132,6 +132,8 @@ interface Actions extends VoidedActionFuncs {
* @param x 要判断的横坐标
*/
_out(x: number): boolean;
_getNextFlyFloor(delta: number, index: number): number;
}
declare const actions: new () => Actions;
+1 -1
View File
@@ -196,7 +196,7 @@ interface EventData {
* @param toId 目标楼层
* @param callback 飞到后的回调函数
*/
flyTo(toId: FloorIds, callback: () => void): void;
flyTo(toId: FloorIds, callback?: () => void): boolean;
/**
* 与怪物战斗前
+30
View File
@@ -187,6 +187,11 @@ interface Floor<T extends FloorIds = FloorIds> extends FloorBase<T> {
* 图块信息
*/
blocks: Block[];
/**
* 是否被砍层
*/
deleted?: boolean;
}
interface ResolvedFloor<T extends FloorIds = FloorIds> extends FloorBase<T> {
@@ -400,6 +405,31 @@ interface DrawThumbnailConfig {
* 是否使用v2优化
*/
v2: boolean;
/**
* 是否在小地图中出现
*/
inFlyMap: boolean;
/**
* 小地图模式下的横坐标
*/
x: number;
/**
* 小地图模式下的纵坐标
*/
y: number;
/**
* 小地图模式下的宽度
*/
w: number;
/**
* 小地图模式下的高度
*/
h: number;
}
interface BlockFilter {
+12 -1
View File
@@ -18,7 +18,8 @@ interface PluginDeclaration
extends PluginUtils,
PluginUis,
PluginUse,
SkillTree {
SkillTree,
MiniMap {
/**
* 添加函数 例:添加弹出文字,像这个就可以使用core.addPop或core.plugin.addPop调用
* @param px 弹出的横坐标
@@ -149,6 +150,9 @@ interface PluginUis {
/** 技能树界面是否打开 */
readonly skillTreeOpened: Ref<boolean>;
/** 楼传界面是否打开 */
readonly flyOpened: Ref<boolean>;
/** ui栈 */
readonly uiStack: Ref<Component[]>;
@@ -246,6 +250,13 @@ interface SkillTree {
loadSkillTree(data: number[]): void;
}
interface MiniMap {
/**
* 切分区域
*/
splitArea(): void;
}
type Chapter = 'chapter1';
interface Skill {