mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-06-02 10:55:48 +08:00
34 lines
753 B
C#
34 lines
753 B
C#
using System;
|
|
|
|
namespace BetterGenshinImpact.Model.Gear.Tasks;
|
|
|
|
/// <summary>
|
|
/// 针对GearTask的引用类
|
|
/// </summary>
|
|
[Obsolete]
|
|
public class GearTaskRefence
|
|
{
|
|
/// <summary>
|
|
/// 任务名称
|
|
/// </summary>
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
public bool Enabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// GearTaskViewModel 的文件路径
|
|
/// </summary>
|
|
public string GearTaskFilePath { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 解析并转换为 BaseGearTask 对象
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public BaseGearTask ToGearTask()
|
|
{
|
|
return BaseGearTask.ReadFileToBaseGearTasks(GearTaskFilePath);
|
|
}
|
|
} |