Files
better-genshin-impact/BetterGenshinImpact/GameTask/AutoPathing/Model/PathingTaskInfo.cs
辉鸭蛋 1fd5320df2 auto pathing: update
- 移除了不必要的 `using` 语句,添加了新的 `using` 语句。
- 将 `Waypoints` 属性重命名为 `Positions`。
- 更新了 `BuildFromFilePath` 方法中的 `JsonOptions` 引用。
- 将 `Waypoint` 类移到单独的文件中,并添加了相关属性和注释。
- 添加了 `SaveToFile` 方法,用于将 `PathingTask` 对象保存到文件。
- 更新了 `PathExecutor` 中的 `TaskControl` 引用,简化了代码。
- 更新了 `PathRecorder` 的属性和方法,使用私有字段 `_pathingTask`。
- 更新了 `MapPathingPage.xaml` 的命令绑定。
- 更新了 `HotKeyPageViewModel` 和 `MapPathingViewModel` 的逻辑。
- 添加了新的 `PathingTaskConfig` 类,用于配置路径任务。
2024-09-08 02:23:45 +08:00

27 lines
689 B
C#

using BetterGenshinImpact.GameTask.AutoPathing.Model.Enum;
using System;
using System.Text.Json.Serialization;
namespace BetterGenshinImpact.GameTask.AutoPathing.Model;
[Serializable]
public class PathingTaskInfo
{
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
/// <summary>
/// 任务类型
/// <see cref="PathingTaskType"/>
/// </summary>
public string Type { get; set; } = string.Empty;
[JsonIgnore]
public string TypeDesc => PathingTaskType.GetMsgByCode(Type);
// 任务参数/配置
// 持续操作 切换某个角色 长E or 短E
// 持续疾跑
// 边跳边走
}