Improve IK-style artifact scanner pipeline
This commit is contained in:
@@ -19,6 +19,7 @@ import type {
|
||||
ScannerCommand,
|
||||
ScannerStatusPayload,
|
||||
ScannerLearningRulePayload,
|
||||
KeyPressResult,
|
||||
} from "../types/global";
|
||||
import type { AppSnapshot } from "../types/domain";
|
||||
import type { StoredArtifactRecord } from "../types/storage";
|
||||
@@ -57,6 +58,7 @@ export interface AssistantBridge {
|
||||
focusGenshinForScanStart: () => Promise<FocusGenshinResult>;
|
||||
clickScreen: (x: number, y: number) => Promise<ClickResult>;
|
||||
scrollScreen: (notches: number, anchorX?: number, anchorY?: number) => Promise<ScrollResult>;
|
||||
keyPress: (key: string) => Promise<KeyPressResult>;
|
||||
onScannerCommand: (callback: (command: ScannerCommand) => void) => () => void;
|
||||
}
|
||||
|
||||
@@ -99,6 +101,7 @@ export function getAssistantBridge(): AssistantBridge | null {
|
||||
focusGenshinForScanStart: () => (hasFocusGenshinForScanStart ? api.focusGenshinForScanStart() : api.focusGenshin()),
|
||||
clickScreen: (x: number, y: number) => api.clickScreen(x, y),
|
||||
scrollScreen: (notches: number, anchorX?: number, anchorY?: number) => api.scrollScreen(notches, anchorX, anchorY),
|
||||
keyPress: (key: string) => api.keyPress(key),
|
||||
showOverlay: () => api.showOverlay(),
|
||||
onScannerCommand: (callback) => api.onScannerCommand(callback),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user