allow adding target points

This commit is contained in:
lwh9346
2024-08-19 11:25:55 +08:00
parent fb0c63f8a8
commit 622a4d5fde

View File

@@ -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)
{