mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-09 06:14:30 +08:00
楼传
This commit is contained in:
1 parent
71a4551004
commit
b3602d3f21
18 files changed
+1040
-36
No files matched your search
Vendored
+2
@@ -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;
|
||||
Vendored
+1
-1
@@ -196,7 +196,7 @@ interface EventData {
|
||||
* @param toId 目标楼层
|
||||
* @param callback 飞到后的回调函数
|
||||
*/
|
||||
flyTo(toId: FloorIds, callback: () => void): void;
|
||||
flyTo(toId: FloorIds, callback?: () => void): boolean;
|
||||
|
||||
/**
|
||||
* 与怪物战斗前
|
||||
|
||||
Vendored
+30
@@ -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 {
|
||||
|
||||
Vendored
+12
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user