MCPcopy Create free account

hub / github.com/Minkelxy/NZM_CMD / functions

Functions121 in github.com/Minkelxy/NZM_CMD

↓ 15 callersMethodclick_humanly
【拟人化鼠标点击】 增加 hold_ms 参数以支持长按点击(如蓄力)
src/human.rs:132
↓ 15 callersMethodkey_click
【拟人化按键点击】 (短按)
src/human.rs:62
↓ 14 callersMethodmove_to_humanly
【高级拟人移动】
src/human.rs:94
↓ 13 callersMethodkey_hold
🔥 【键盘长按】 允许指定按下的毫秒数。如果是 0,则执行一次极短的点击。
src/human.rs:44
↓ 11 callersMethodkey_up
(&mut self)
src/hardware.rs:143
↓ 10 callersMethodkey_down
(&mut self, keycode: u8, modifier: u8)
src/hardware.rs:139
↓ 9 callersMethodsend_raw
(&mut self, event_type: EventType, b: [u8; 6], delay_ms: u16)
src/hardware.rs:62
↓ 5 callersMethodclamp_camera_position
(&mut self)
src/tower_defense.rs:999
↓ 5 callersMethodcurrent_scene_mut
(&mut self)
tools/UI_tool/src/main.rs:111
↓ 4 callersMethodget_camera_bounds
(&self)
src/tower_defense.rs:989
↓ 4 callersMethodnavigate
(&self, target_id: &str)
src/nav.rs:347
↓ 4 callersMethodprocess_task_batch
(&mut self, tasks: Vec<ScheduledTask>, force_initial_refresh: bool)
src/tower_defense.rs:555
↓ 3 callersFunctionexecute_target
(target: &str, driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:336
↓ 3 callersFunctionexecute_td_internal
(scene_id: &str, driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:324
↓ 3 callersMethodget_match_score
(&self, target_id: &str)
src/nav.rs:266
↓ 3 callersFunctionget_today_string
()
src/main.rs:40
↓ 3 callersMethodmouse_scroll
🔥 【模拟鼠标滚轮】 delta: 120 的倍数,正数为向上滚,负数为向下滚
src/human.rs:70
↓ 3 callersMethodocr_area
(&self, rect: [i32; 4])
src/nav.rs:262
↓ 3 callersMethodperform_key
(&self, key: &str)
src/nav.rs:234
↓ 3 callersMethodrun
(&mut self, terrain_p: &str, strategy_p: &str, trap_p: &str)
src/tower_defense.rs:1061
↓ 3 callersMethodrun_windows_ocr
调用底层 Windows OCR 识别单张图像
src/nav.rs:109
↓ 2 callersMethodalign_camera_to_edge
(&mut self, top: bool)
src/tower_defense.rs:708
↓ 2 callersMethodare_tasks_in_current_view
(&self, tasks: &[ScheduledTask])
src/tower_defense.rs:394
↓ 2 callersFunctioncheck_today_executed
(scene_id: &str)
src/main.rs:46
↓ 2 callersFunctioncreate_driver
( t: DriverType, port: &str, screen_w: u16, screen_h: u16 )
src/hardware.rs:257
↓ 2 callersMethodcurrent_scene
(&self)
tools/UI_tool/src/main.rs:107
↓ 2 callersMethoddispatch_tasks_by_region
(&mut self, tasks: Vec<ScheduledTask>)
src/tower_defense.rs:512
↓ 2 callersMethodexecute_wave_phase
(&mut self, wave: i32, is_late: bool)
src/tower_defense.rs:428
↓ 2 callersMethodget_absolute_map_pixel
( &self, gx: usize, gy: usize, w: usize, h: usize, )
src/tower_defense.rs:962
↓ 2 callersMethodget_due_tasks
(&mut self)
src/scheduler.rs:85
↓ 2 callersMethodget_text_from_area
(&self, rect: [i32; 4])
src/nav.rs:147
↓ 2 callersMethodget_trap_key
(&self, name: &str)
src/tower_defense.rs:1046
↓ 2 callersMethodimport_toml
(&mut self)
tools/UI_tool/src/main.rs:284
↓ 2 callersMethodmouse_move
(&mut self, dx: i32, dy: i32, wheel: i8)
src/hardware.rs:106
↓ 2 callersMethodparse_time
(&self, time_str: &str)
src/scheduler.rs:143
↓ 2 callersMethodrecognize_wave_status
(&mut self, rect: [i32; 4], use_tab: bool)
src/tower_defense.rs:325
↓ 2 callersMethodrun_ocr_on_image
(&self, engine: &OcrEngine, dynamic_img: &image::DynamicImage)
tools/UI_tool/src/main.rs:500
↓ 2 callersMethodscroll_camera_by_pixels
( &mut self, direction: char, pixels: f32, time_resolution_ms: u64, )
src/tower_defense.rs:744
↓ 1 callersMethodadd_new_scene
(&mut self)
tools/UI_tool/src/main.rs:115
↓ 1 callersMethodbuild_toml
(&mut self)
tools/UI_tool/src/main.rs:236
↓ 1 callersMethodcalculate_layout
(&self, scenes: &[TomlScene])
tools/UI_tool/src/main.rs:365
↓ 1 callersMethodcalibrate_camera_to_corner
(&mut self, top_left: bool)
src/tower_defense.rs:722
↓ 1 callersMethodcapture_immediate
(&mut self, ctx: &egui::Context)
tools/UI_tool/src/main.rs:208
↓ 1 callersMethodchar_to_keycode
内部辅助:字符转 HID 键码
src/human.rs:32
↓ 1 callersMethodcheck_color_anchor
(&self, pos: [i32; 2], expected_hex: &str, tolerance: u8)
src/nav.rs:214
↓ 1 callersMethodcheck_text_anchor
(&self, rect: [i32; 4], expected: &str)
src/nav.rs:201
↓ 1 callersMethoddebug_ocr_file
(&self, file_path: &str, expected_contain: &str)
src/nav.rs:206
↓ 1 callersMethoddelete_current_scene
(&mut self)
tools/UI_tool/src/main.rs:135
↓ 1 callersMethoddouble_click_humanly
(&mut self, left: bool, right: bool, interval_ms: u64)
src/human.rs:144
↓ 1 callersMethoddraw_grid
(&self, painter: &egui::Painter, rect: Rect)
tools/UI_tool/src/main.rs:721
↓ 1 callersMethoddraw_scene_connections
(&self, painter: &egui::Painter, transform: &dyn Fn(Pos2) -> Pos2)
tools/UI_tool/src/main.rs:741
↓ 1 callersMethoddraw_screenshot_panel
(&mut self, ui: &mut egui::Ui)
tools/UI_tool/src/main.rs:676
↓ 1 callersMethoddraw_visualization_panel
(&mut self, ui: &mut egui::Ui)
tools/UI_tool/src/main.rs:546
↓ 1 callersMethodduplicate_current_scene
(&mut self)
tools/UI_tool/src/main.rs:147
↓ 1 callersFunctionexecute_daily
(driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:255
↓ 1 callersMethodexecute_prep_logic
(&self)
src/tower_defense.rs:880
↓ 1 callersMethodexecute_single_upgrade
(&mut self, u: &UpgradeEvent)
src/tower_defense.rs:697
↓ 1 callersFunctionexecute_td
(target: &str, driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:304
↓ 1 callersMethodextract_wave_with_validation
(&self, text: &str, is_same_text: bool)
src/tower_defense.rs:268
↓ 1 callersMethodfind_path
(&self, start: &str, target: &str)
src/nav.rs:399
↓ 1 callersMethodfuse_ocr_results
(&self, results: &[String])
tools/UI_tool/src/main.rs:527
↓ 1 callersMethodfuse_ocr_results
(&self, results: &[String])
src/nav.rs:182
↓ 1 callersMethodget_camera_speed
(&self, direction: char)
src/tower_defense.rs:975
↓ 1 callersFunctionget_hid_code
辅助函数:将字符转换为 HID 键码
src/tower_defense.rs:189
↓ 1 callersMethodget_next_task_time
(&self)
src/scheduler.rs:155
↓ 1 callersMethodheartbeat
(&mut self)
src/hardware.rs:79
↓ 1 callersMethodhid_to_enigo
(&self, hid: u8)
src/hardware.rs:170
↓ 1 callersMethodidentify_current_scene
(&self, hint: Option<&str>)
src/nav.rs:293
↓ 1 callersMethodlist_tasks
(&self)
src/scheduler.rs:61
↓ 1 callersMethodload_map_terrain
(&mut self, path: &str)
src/tower_defense.rs:835
↓ 1 callersMethodload_strategy
(&mut self, path: &str)
src/tower_defense.rs:250
↓ 1 callersMethodload_trap_config
(&mut self, json_path: &str)
src/tower_defense.rs:843
↓ 1 callersFunctionmark_today_executed
(scene_id: &str)
src/main.rs:58
↓ 1 callersMethodmouse_abs
(&mut self, x: u16, y: u16)
src/hardware.rs:92
↓ 1 callersMethodmouse_down
(&mut self, left: bool, right: bool)
src/hardware.rs:128
↓ 1 callersMethodmouse_up
(&mut self)
src/hardware.rs:135
↓ 1 callersMethodmove_camera_to_position
(&mut self, target_x: f32, target_y: f32)
src/tower_defense.rs:777
↓ 1 callersMethodperform_build_action
( &mut self, last_key: &mut Option<char>, screen_moved: bool, map_x: f32,
src/tower_defense.rs:641
↓ 1 callersMethodperform_click
(&self, x: i32, y: i32)
src/nav.rs:227
↓ 1 callersMethodperform_demolish_action
(&mut self, map_x: f32, map_y: f32, uid: usize)
src/tower_defense.rs:606
↓ 1 callersMethodperform_ocr
(&mut self, rect: Rect)
tools/UI_tool/src/main.rs:454
↓ 1 callersMethodpick_color
(&self, p: Pos2)
tools/UI_tool/src/main.rs:224
↓ 1 callersMethodprocess_slot
(&self, slot: &TaskSlot)
src/daily_routine.rs:78
↓ 1 callersFunctionrun_combo_test
(driver: Arc<Mutex<HumanDriver>>)
src/main.rs:445
↓ 1 callersFunctionrun_input_test
(driver: Arc<Mutex<HumanDriver>>)
src/main.rs:365
↓ 1 callersFunctionrun_ocr_test
(engine: Arc<NavEngine>)
src/main.rs:414
↓ 1 callersFunctionrun_screen_test
()
src/main.rs:387
↓ 1 callersFunctionrun_scroll_test
(driver: Arc<Mutex<HumanDriver>>)
src/main.rs:431
↓ 1 callersMethodselect_loadout
(&self)
src/tower_defense.rs:928
↓ 1 callersFunctionsetup_custom_fonts
========================================== 3. UI 实现 ==========================================
tools/UI_tool/src/main.rs:784
↓ 1 callersMethodsetup_view
(&mut self)
src/tower_defense.rs:853
↓ 1 callersMethodsmart_move_camera
(&mut self, target_map_x: f32, target_map_y: f32)
src/tower_defense.rs:807
↓ 1 callersMethodtype_humanly
【拟人化打字】
src/human.rs:158
↓ 1 callersMethodvalidate_wave_transition
(&mut self, detected_wave: i32)
src/tower_defense.rs:376
↓ 1 callersMethodwait_for_scene
(&self, target_id: &str, timeout_ms: u64)
src/nav.rs:333
Methodalign_camera_to_corner
(&mut self, left: bool, top: bool)
src/tower_defense.rs:1006
Methodbezier_cubic
(t: f32, p0: (f32, f32), p1: (f32, f32), p2: (f32, f32), p3: (f32, f32))
src/human.rs:181
Methoddefault
()
tools/UI_tool/src/main.rs:63
Methoddefault
()
src/tower_defense.rs:61
Functiondefault_camera_speed_down
()
src/tower_defense.rs:115
next →1–100 of 121, ranked by callers