From 622a4d5fdec8dffc0797ade620ca4ad4a2f7a734 Mon Sep 17 00:00:00 2001 From: lwh9346 Date: Mon, 19 Aug 2024 11:25:55 +0800 Subject: [PATCH] allow adding target points --- BetterGenshinImpact/GameTask/AutoPathing/PathRecorder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BetterGenshinImpact/GameTask/AutoPathing/PathRecorder.cs b/BetterGenshinImpact/GameTask/AutoPathing/PathRecorder.cs index 0cd53988..556fc81a 100644 --- a/BetterGenshinImpact/GameTask/AutoPathing/PathRecorder.cs +++ b/BetterGenshinImpact/GameTask/AutoPathing/PathRecorder.cs @@ -30,7 +30,7 @@ public class PathRecorder TaskControl.Logger.LogInformation("已创建初始路径点({x},{y})", waypoint.X, waypoint.Y); } - public void AddWaypoint() + public void AddWaypoint(WaypointType waypointType = WaypointType.Transit) { var waypoint = new Model.Waypoint(); var screen = TaskControl.CaptureToRectArea(); @@ -38,7 +38,7 @@ public class PathRecorder position = MapCoordinate.Main2048ToGame(position); waypoint.X = position.X; waypoint.Y = position.Y; - waypoint.WaypointType = Model.WaypointType.Transit; + waypoint.WaypointType = waypointType; var motionStatus = Bv.GetMotionStatus(screen); switch (motionStatus) {