mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-09 06:14:30 +08:00
快速标记怪物
This commit is contained in:
1 parent
1f1cd6ea3b
commit
3db34ffad9
11 files changed
+95
-14
No files matched your search
Vendored
+12
@@ -1324,6 +1324,11 @@ interface Main extends MainData {
|
||||
* 执行样板的所有监听
|
||||
*/
|
||||
listen(): void;
|
||||
|
||||
/**
|
||||
* 执行ts的插件转发
|
||||
*/
|
||||
forward(): void;
|
||||
}
|
||||
|
||||
interface Flags {
|
||||
@@ -1362,6 +1367,11 @@ interface Flags {
|
||||
*/
|
||||
readonly __visited__: Record<FloorIds, boolean>;
|
||||
|
||||
/**
|
||||
* 鼠标位置
|
||||
*/
|
||||
mouseLoc: LocArr;
|
||||
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
@@ -1453,4 +1463,6 @@ declare const plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1: PluginDeclaration;
|
||||
|
||||
interface Window {
|
||||
core: CoreMixin;
|
||||
flags: Flags;
|
||||
hero: HeroStatus;
|
||||
}
|
||||
Vendored
+25
@@ -49,6 +49,22 @@ interface PluginDeclaration extends PluginUtils, PluginUis, PluginUse {
|
||||
*/
|
||||
checkMarkedEnemy(): void;
|
||||
|
||||
/**
|
||||
* 标记怪物
|
||||
* @param id 怪物id
|
||||
*/
|
||||
markEnemy(id: EnemyIds): void;
|
||||
|
||||
/**
|
||||
* 是否标记过某个怪物
|
||||
*/
|
||||
hasMarkedEnemy(id: EnemyIds): void;
|
||||
|
||||
/**
|
||||
* 取消标记过某个怪物
|
||||
*/
|
||||
unmarkEnemy(id: EnemyIds): void;
|
||||
|
||||
/**
|
||||
* 重置设置信息
|
||||
*/
|
||||
@@ -73,6 +89,15 @@ interface PluginUtils {
|
||||
* @param css 要解析的css字符串
|
||||
*/
|
||||
parseCss(css: string): Partial<Record<CanParseCss, string>>;
|
||||
|
||||
/**
|
||||
* 弹出一段提示
|
||||
* @param text 提示信息
|
||||
*/
|
||||
tip(
|
||||
type: 'warn' | 'info' | 'success' | 'error' | 'warning' | 'loading',
|
||||
text: string
|
||||
): void;
|
||||
}
|
||||
|
||||
interface PluginUis {
|
||||
|
||||
Reference in new issue
Block a user