Files
MaaAssistantArknights/src/MaaWpfGui/ViewModels/TaskViewModel.cs
2025-04-28 14:49:44 +08:00

34 lines
1.0 KiB
C#

// <copyright file="TaskViewModel.cs" company="MaaAssistantArknights">
// MaaWpfGui - A part of the MaaCoreArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License v3.0 only as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
#nullable enable
using System;
using MaaWpfGui.Main;
using MaaWpfGui.Services;
using Newtonsoft.Json.Linq;
using Stylet;
namespace MaaWpfGui.ViewModels;
public abstract class TaskViewModel : PropertyChangedBase
{
public virtual void ProcSubTaskMsg(AsstMsg msg, JObject details)
{
}
/// <summary>
/// 序列化MAA任务
/// </summary>
/// <returns>返回(Asst任务类型, 参数)</returns>
public abstract (AsstTaskType Type, JObject Params) Serialize();
}